mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibJS: Make Cell::initialize() return void
Stop worrying about tiny OOMs. Work towards #20405
This commit is contained in:
@@ -84,12 +84,10 @@ URL::URL(JS::Realm& realm, AK::URL url, JS::NonnullGCPtr<URLSearchParams> query)
|
||||
|
||||
URL::~URL() = default;
|
||||
|
||||
JS::ThrowCompletionOr<void> URL::initialize(JS::Realm& realm)
|
||||
void URL::initialize(JS::Realm& realm)
|
||||
{
|
||||
MUST_OR_THROW_OOM(Base::initialize(realm));
|
||||
Base::initialize(realm);
|
||||
set_prototype(&Bindings::ensure_web_prototype<Bindings::URLPrototype>(realm, "URL"));
|
||||
|
||||
return {};
|
||||
}
|
||||
|
||||
void URL::visit_edges(Cell::Visitor& visitor)
|
||||
|
||||
Reference in New Issue
Block a user