summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/WebIDL/DOMException.cpp')
-rw-r--r--Userland/Libraries/LibWeb/WebIDL/DOMException.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp b/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
index baaeac3a3f..ccbcdbfaf0 100644
--- a/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
+++ b/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
@@ -28,10 +28,12 @@ DOMException::DOMException(JS::Realm& realm, DeprecatedFlyString const& name, De
DOMException::~DOMException() = default;
-void DOMException::initialize(JS::Realm& realm)
+JS::ThrowCompletionOr<void> DOMException::initialize(JS::Realm& realm)
{
- Base::initialize(realm);
+ MUST_OR_THROW_OOM(Base::initialize(realm));
set_prototype(&Bindings::ensure_web_prototype<Bindings::DOMExceptionPrototype>(realm, "DOMException"));
+
+ return {};
}
}