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