mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-07 17:15:26 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -23,12 +23,10 @@ FormDataEvent::FormDataEvent(JS::Realm& realm, FlyString const& event_name, Form
|
||||
|
||||
FormDataEvent::~FormDataEvent() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> FormDataEvent::initialize(JS::Realm& realm)
|
||||
void FormDataEvent::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::FormDataEventPrototype>(realm, "FormDataEvent"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void FormDataEvent::visit_edges(Cell::Visitor& visitor)
|
||||
|
||||
Reference in New Issue
Block a user