diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp index 684e4e49f1..15feeca06a 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLPreElement.cpp @@ -16,10 +16,12 @@ HTMLPreElement::HTMLPreElement(DOM::Document& document, DOM::QualifiedName quali HTMLPreElement::~HTMLPreElement() = default; -void HTMLPreElement::initialize(JS::Realm& realm) +JS::ThrowCompletionOr<void> HTMLPreElement::initialize(JS::Realm& realm) { - Base::initialize(realm); + MUST_OR_THROW_OOM(Base::initialize(realm)); set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLPreElementPrototype>(realm, "HTMLPreElement")); + + return {}; } void HTMLPreElement::apply_presentational_hints(CSS::StyleProperties& style) const |