mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -27,12 +27,10 @@ Navigator::Navigator(JS::Realm& realm)
|
||||
|
||||
Navigator::~Navigator() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> Navigator::initialize(JS::Realm& realm)
|
||||
void Navigator::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::NavigatorPrototype>(realm, "Navigator"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/system-state.html#dom-navigator-pdfviewerenabled
|
||||
|
||||
Reference in New Issue
Block a user