From 22089436edec780e03960ecaa74bfc4930126534 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 14 Dec 2022 17:40:33 +0000 Subject: LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtr --- Userland/Libraries/LibWeb/WebIDL/DOMException.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Userland/Libraries/LibWeb/WebIDL') 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::create(JS::Realm& realm, FlyString const& name, FlyString const& message) { - return *realm.heap().allocate(realm, realm, name, message); + return realm.heap().allocate(realm, realm, name, message); } JS::NonnullGCPtr DOMException::construct_impl(JS::Realm& realm, FlyString const& message, FlyString const& name) { - return *realm.heap().allocate(realm, realm, name, message); + return realm.heap().allocate(realm, realm, name, message); } DOMException::DOMException(JS::Realm& realm, FlyString const& name, FlyString const& message) -- cgit v1.2.3