summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/WebIDL
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibWeb/WebIDL')
-rw-r--r--Userland/Libraries/LibWeb/WebIDL/DOMException.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp b/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
index 8553fda7f5..723eeef204 100644
--- a/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
+++ b/Userland/Libraries/LibWeb/WebIDL/DOMException.cpp
@@ -11,12 +11,12 @@ namespace Web::WebIDL {
JS::NonnullGCPtr<DOMException> DOMException::create(JS::Realm& realm, FlyString const& name, FlyString const& message)
{
- return *realm.heap().allocate<DOMException>(realm, realm, name, message);
+ return realm.heap().allocate<DOMException>(realm, realm, name, message);
}
JS::NonnullGCPtr<DOMException> DOMException::construct_impl(JS::Realm& realm, FlyString const& message, FlyString const& name)
{
- return *realm.heap().allocate<DOMException>(realm, realm, name, message);
+ return realm.heap().allocate<DOMException>(realm, realm, name, message);
}
DOMException::DOMException(JS::Realm& realm, FlyString const& name, FlyString const& message)