mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:37:46 +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
|
@ -86,9 +86,9 @@ private:
|
|||
u32 m_handle { 0 };
|
||||
};
|
||||
|
||||
JS::NonnullGCPtr<Window> Window::create(JS::Realm& realm)
|
||||
WebIDL::ExceptionOr<JS::NonnullGCPtr<Window>> Window::create(JS::Realm& realm)
|
||||
{
|
||||
return realm.heap().allocate<Window>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
|
||||
return MUST_OR_THROW_OOM(realm.heap().allocate<Window>(realm, realm));
|
||||
}
|
||||
|
||||
Window::Window(JS::Realm& realm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue