diff options
Diffstat (limited to 'Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp')
-rw-r--r-- | Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp index 54a31f7ae8..74e7568ac7 100644 --- a/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp +++ b/Userland/Libraries/LibJS/Contrib/Test262/$262Object.cpp @@ -23,7 +23,7 @@ $262Object::$262Object(Realm& realm) { } -void $262Object::initialize(JS::Realm& realm) +void $262Object::initialize(Realm& realm) { Base::initialize(realm); @@ -63,7 +63,7 @@ JS_DEFINE_NATIVE_FUNCTION($262Object::create_realm) VERIFY(realm_global_object); realm->set_global_object(realm_global_object, nullptr); realm_global_object->set_associated_realm(*realm); - realm_global_object->initialize_global_object(); + realm_global_object->initialize_global_object(*realm); return Value(realm_global_object->$262()); } |