1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:27:43 +00:00

LibWeb: Make factory method of HTML::CloseEvent fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 18:56:00 +01:00 committed by Linus Groh
parent b7c488e51e
commit 2ed7f64c73
3 changed files with 6 additions and 6 deletions

View file

@ -222,7 +222,7 @@ void WebSocket::on_close(u16 code, DeprecatedString reason, bool was_clean)
event_init.was_clean = was_clean;
event_init.code = code;
event_init.reason = move(reason);
dispatch_event(*HTML::CloseEvent::create(realm(), HTML::EventNames::close, event_init));
dispatch_event(HTML::CloseEvent::create(realm(), HTML::EventNames::close, event_init).release_value_but_fixme_should_propagate_errors());
}
// https://websockets.spec.whatwg.org/#feedback-from-the-protocol