mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-04-25 22:13:13 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -26,12 +26,10 @@ DOMParser::DOMParser(JS::Realm& realm)
|
||||
|
||||
DOMParser::~DOMParser() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> DOMParser::initialize(JS::Realm& realm)
|
||||
void DOMParser::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::DOMParserPrototype>(realm, "DOMParser"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#dom-domparser-parsefromstring
|
||||
|
||||
Reference in New Issue
Block a user