summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
index 92f59c6db1..199d8eeeaf 100644
--- a/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
+++ b/Userland/Libraries/LibJS/Runtime/ObjectConstructor.cpp
@@ -17,8 +17,8 @@
namespace JS {
-ObjectConstructor::ObjectConstructor(GlobalObject& global_object)
- : NativeFunction(vm().names.Object.as_string(), *global_object.function_prototype())
+ObjectConstructor::ObjectConstructor(Realm& realm)
+ : NativeFunction(vm().names.Object.as_string(), *realm.global_object().function_prototype())
{
}