mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 11:20:03 +00:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -31,12 +31,10 @@ HTMLCanvasElement::HTMLCanvasElement(DOM::Document& document, DOM::QualifiedName
|
||||
|
||||
HTMLCanvasElement::~HTMLCanvasElement() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> HTMLCanvasElement::initialize(JS::Realm& realm)
|
||||
void HTMLCanvasElement::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLCanvasElementPrototype>(realm, "HTMLCanvasElement"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void HTMLCanvasElement::visit_edges(Cell::Visitor& visitor)
|
||||
|
||||
Reference in New Issue
Block a user