diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/Set.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/Set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/Set.cpp b/Userland/Libraries/LibJS/Runtime/Set.cpp index dd143e7e88..83779d0d28 100644 --- a/Userland/Libraries/LibJS/Runtime/Set.cpp +++ b/Userland/Libraries/LibJS/Runtime/Set.cpp @@ -8,9 +8,9 @@ namespace JS { -Set* Set::create(GlobalObject& global_object) +Set* Set::create(Realm& realm) { - return global_object.heap().allocate<Set>(global_object, *global_object.set_prototype()); + return realm.heap().allocate<Set>(realm.global_object(), *realm.global_object().set_prototype()); } Set::Set(Object& prototype) |