diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp b/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp index 8af021d892..ad1da3af2a 100644 --- a/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp +++ b/Userland/Libraries/LibJS/Runtime/ShadowRealmConstructor.cpp @@ -11,8 +11,8 @@ namespace JS { // 3.2 The ShadowRealm Constructor, https://tc39.es/proposal-shadowrealm/#sec-shadowrealm-constructor -ShadowRealmConstructor::ShadowRealmConstructor(GlobalObject& global_object) - : NativeFunction(vm().names.ShadowRealm.as_string(), *global_object.function_prototype()) +ShadowRealmConstructor::ShadowRealmConstructor(Realm& realm) + : NativeFunction(vm().names.ShadowRealm.as_string(), *realm.global_object().function_prototype()) { } |