diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp index e6fe3dddfc..83b2b7f90a 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLHeadingElement.cpp @@ -16,10 +16,12 @@ HTMLHeadingElement::HTMLHeadingElement(DOM::Document& document, DOM::QualifiedNa HTMLHeadingElement::~HTMLHeadingElement() = default; -void HTMLHeadingElement::initialize(JS::Realm& realm) +JS::ThrowCompletionOr<void> HTMLHeadingElement::initialize(JS::Realm& realm) { - Base::initialize(realm); + MUST_OR_THROW_OOM(Base::initialize(realm)); set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLHeadingElementPrototype>(realm, "HTMLHeadingElement")); + + return {}; } // https://html.spec.whatwg.org/multipage/rendering.html#tables-2 |