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

LibWeb: Make factory method of HTML::Window fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 20:04:35 +01:00 committed by Linus Groh
parent b41401bab2
commit 3e834636a6
4 changed files with 5 additions and 5 deletions

View file

@ -178,7 +178,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<Document>> Document::create_and_initialize(
Bindings::main_thread_vm(),
[&](JS::Realm& realm) -> JS::Object* {
// - For the global object, create a new Window object.
window = HTML::Window::create(realm);
window = HTML::Window::create(realm).release_value_but_fixme_should_propagate_errors();
return window;
},
[&](JS::Realm&) -> JS::Object* {