diff options
author | Kenneth Myhra <kennethmyhra@gmail.com> | 2023-03-05 10:56:50 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-05 18:25:59 +0000 |
commit | dd2d029952f3d1adb91fa9bcd5762803851f7213 (patch) | |
tree | ea5c1ab197b37e3a0541dcf7b1a180878d4f6927 /Userland/Libraries/LibWeb/HTML/Scripting | |
parent | bb7ae423d5deb6be83f4cdada353422cb10f3714 (diff) | |
download | serenity-dd2d029952f3d1adb91fa9bcd5762803851f7213.zip |
LibWeb: Port PromiseRejectionEvent to new String
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/Scripting')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/Scripting/Environments.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/Scripting/Environments.cpp b/Userland/Libraries/LibWeb/HTML/Scripting/Environments.cpp index 17c2b89079..1b4becd78b 100644 --- a/Userland/Libraries/LibWeb/HTML/Scripting/Environments.cpp +++ b/Userland/Libraries/LibWeb/HTML/Scripting/Environments.cpp @@ -251,7 +251,7 @@ void EnvironmentSettingsObject::notify_about_rejected_promises(Badge<EventLoop>) // FIXME: This currently assumes that global is a WindowObject. auto& window = verify_cast<HTML::Window>(global); - auto promise_rejection_event = PromiseRejectionEvent::create(window.realm(), HTML::EventNames::unhandledrejection, event_init).release_value_but_fixme_should_propagate_errors(); + auto promise_rejection_event = PromiseRejectionEvent::create(window.realm(), String::from_deprecated_string(HTML::EventNames::unhandledrejection).release_value_but_fixme_should_propagate_errors(), event_init).release_value_but_fixme_should_propagate_errors(); bool not_handled = window.dispatch_event(*promise_rejection_event); |