mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:28:11 +00:00
LibWeb: Make factory method of HTML::Window fallible
This commit is contained in:
parent
b41401bab2
commit
3e834636a6
4 changed files with 5 additions and 5 deletions
|
@ -118,7 +118,7 @@ JS::NonnullGCPtr<BrowsingContext> BrowsingContext::create_a_new_browsing_context
|
|||
browsing_context->m_window_proxy = realm.heap().allocate<WindowProxy>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
|
||||
// - 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.ptr();
|
||||
},
|
||||
[&](JS::Realm&) -> JS::Object* {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue