mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:17:35 +00:00
LibWeb: Make factory method of HTML::PromiseRejectionEvent fallible
This commit is contained in:
parent
193de231e0
commit
3941e64fde
4 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue