diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp index 7ba220f5c1..d6242daef2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLEmbedElement.cpp @@ -16,10 +16,12 @@ HTMLEmbedElement::HTMLEmbedElement(DOM::Document& document, DOM::QualifiedName q HTMLEmbedElement::~HTMLEmbedElement() = default; -void HTMLEmbedElement::initialize(JS::Realm& realm) +JS::ThrowCompletionOr<void> HTMLEmbedElement::initialize(JS::Realm& realm) { - Base::initialize(realm); + MUST_OR_THROW_OOM(Base::initialize(realm)); set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLEmbedElementPrototype>(realm, "HTMLEmbedElement")); + + return {}; } } |