diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/WeakRef.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/WeakRef.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/WeakRef.cpp b/Userland/Libraries/LibJS/Runtime/WeakRef.cpp index 286b1f9322..d3d10a2cb9 100644 --- a/Userland/Libraries/LibJS/Runtime/WeakRef.cpp +++ b/Userland/Libraries/LibJS/Runtime/WeakRef.cpp @@ -10,12 +10,12 @@ namespace JS { WeakRef* WeakRef::create(Realm& realm, Object& value) { - return realm.heap().allocate<WeakRef>(realm.global_object(), value, *realm.global_object().weak_ref_prototype()); + return realm.heap().allocate<WeakRef>(realm, value, *realm.global_object().weak_ref_prototype()); } WeakRef* WeakRef::create(Realm& realm, Symbol& value) { - return realm.heap().allocate<WeakRef>(realm.global_object(), value, *realm.global_object().weak_ref_prototype()); + return realm.heap().allocate<WeakRef>(realm, value, *realm.global_object().weak_ref_prototype()); } WeakRef::WeakRef(Object& value, Object& prototype) |