summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/WeakMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakMap.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/WeakMap.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WeakMap.cpp b/Userland/Libraries/LibJS/Runtime/WeakMap.cpp
index 0169bdf1c1..f4e52c0cc8 100644
--- a/Userland/Libraries/LibJS/Runtime/WeakMap.cpp
+++ b/Userland/Libraries/LibJS/Runtime/WeakMap.cpp
@@ -8,9 +8,9 @@
namespace JS {
-WeakMap* WeakMap::create(Realm& realm)
+NonnullGCPtr<WeakMap> WeakMap::create(Realm& realm)
{
- return realm.heap().allocate<WeakMap>(realm, *realm.intrinsics().weak_map_prototype());
+ return *realm.heap().allocate<WeakMap>(realm, *realm.intrinsics().weak_map_prototype());
}
WeakMap::WeakMap(Object& prototype)