1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

LibWeb: Make factory method of HTML::Navigator fallible

This commit is contained in:
Kenneth Myhra 2023-02-15 19:52:40 +01:00 committed by Linus Groh
parent 2f4db60c08
commit d7ee378018
2 changed files with 3 additions and 3 deletions

View file

@ -15,9 +15,9 @@
namespace Web::HTML {
JS::NonnullGCPtr<Navigator> Navigator::create(JS::Realm& realm)
WebIDL::ExceptionOr<JS::NonnullGCPtr<Navigator>> Navigator::create(JS::Realm& realm)
{
return realm.heap().allocate<Navigator>(realm, realm).release_allocated_value_but_fixme_should_propagate_errors();
return MUST_OR_THROW_OOM(realm.heap().allocate<Navigator>(realm, realm));
}
Navigator::Navigator(JS::Realm& realm)