summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-12-14 17:40:33 +0000
committerTim Flynn <trflynn89@pm.me>2022-12-15 06:56:37 -0500
commit22089436edec780e03960ecaa74bfc4930126534 (patch)
treef60662c28d36e8fcce4b734e09af396c68ed1aaf /Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp
parent2a66fc6cae8ef09e780cd795bf0b1d7f8844f4ec (diff)
downloadserenity-22089436edec780e03960ecaa74bfc4930126534.zip
LibJS: Convert Heap::allocate{,_without_realm}() to NonnullGCPtr
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp b/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp
index fe0b4d9cb9..c79e9e1f3b 100644
--- a/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp
+++ b/Userland/Libraries/LibJS/Runtime/PromiseResolvingFunction.cpp
@@ -13,7 +13,7 @@ namespace JS {
NonnullGCPtr<PromiseResolvingFunction> PromiseResolvingFunction::create(Realm& realm, Promise& promise, AlreadyResolved& already_resolved, FunctionType function)
{
- return *realm.heap().allocate<PromiseResolvingFunction>(realm, promise, already_resolved, move(function), *realm.intrinsics().function_prototype());
+ return realm.heap().allocate<PromiseResolvingFunction>(realm, promise, already_resolved, move(function), *realm.intrinsics().function_prototype());
}
PromiseResolvingFunction::PromiseResolvingFunction(Promise& promise, AlreadyResolved& already_resolved, FunctionType native_function, Object& prototype)