diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-02-15 19:30:27 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-02-18 00:52:47 +0100 |
commit | 3941e64fdedbd12079b2c8e60441b5adaaf50731 (patch) | |
tree | 1ece27bb399eb4d7188f2a3c180e5d726dc8b3d0 /Userland/Libraries/LibWeb/Bindings | |
parent | 193de231e05cf4c6fb9f30637f364ec3b8cd4aad (diff) | |
download | serenity-3941e64fdedbd12079b2c8e60441b5adaaf50731.zip |
LibWeb: Make factory method of HTML::PromiseRejectionEvent fallible
Diffstat (limited to 'Userland/Libraries/LibWeb/Bindings')
-rw-r--r-- | Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp index d6fd5a3e42..8f4b5b236c 100644 --- a/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp +++ b/Userland/Libraries/LibWeb/Bindings/MainThreadVM.cpp @@ -138,8 +138,8 @@ JS::VM& main_thread_vm() /* .promise = */ promise, /* .reason = */ promise.result(), }; - auto promise_rejection_event = HTML::PromiseRejectionEvent::create(HTML::relevant_realm(global), HTML::EventNames::rejectionhandled, event_init); - window.dispatch_event(*promise_rejection_event); + auto promise_rejection_event = HTML::PromiseRejectionEvent::create(HTML::relevant_realm(global), HTML::EventNames::rejectionhandled, event_init).release_value_but_fixme_should_propagate_errors(); + window.dispatch_event(promise_rejection_event); }); break; } |