mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -17,12 +17,10 @@ HTMLAreaElement::HTMLAreaElement(DOM::Document& document, DOM::QualifiedName qua
|
||||
|
||||
HTMLAreaElement::~HTMLAreaElement() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> HTMLAreaElement::initialize(JS::Realm& realm)
|
||||
void HTMLAreaElement::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLAreaElementPrototype>(realm, "HTMLAreaElement"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void HTMLAreaElement::attribute_changed(DeprecatedFlyString const& name, DeprecatedString const& value)
|
||||
|
||||
Reference in New Issue
Block a user