summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-08-28 14:42:50 +0100
committerLinus Groh <mail@linusgroh.de>2022-08-28 16:36:56 +0100
commitcfa588585512540be5738b9b02511560a1126612 (patch)
tree059013bc0b3bb81c4d7bc792f326fc3402ffac51 /Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
parent867ad039959e92b05b728f7a45d6793c34aa853f (diff)
downloadserenity-cfa588585512540be5738b9b02511560a1126612.zip
LibJS: Turn initialize_global_object() into a regular initialize()
There's nothing special about global object initialization anymore, this can just work the same way as for any other object now.
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/GlobalObject.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/GlobalObject.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
index 3464b6b34a..5d147d37eb 100644
--- a/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
+++ b/Userland/Libraries/LibJS/Runtime/GlobalObject.cpp
@@ -88,8 +88,10 @@ GlobalObject::GlobalObject(Realm& realm)
}
// 9.3.4 SetDefaultGlobalBindings ( realmRec ), https://tc39.es/ecma262/#sec-setdefaultglobalbindings
-void GlobalObject::initialize_global_object(Realm& realm)
+void GlobalObject::initialize(Realm& realm)
{
+ Base::initialize(realm);
+
auto& vm = this->vm();
ensure_shape_is_unique();