mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -29,12 +29,10 @@ CloseEvent::CloseEvent(JS::Realm& realm, FlyString const& event_name, CloseEvent
|
||||
|
||||
CloseEvent::~CloseEvent() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> CloseEvent::initialize(JS::Realm& realm)
|
||||
void CloseEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::CloseEventPrototype>(realm, "CloseEvent"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user