1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

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.
This commit is contained in:
Linus Groh 2022-08-28 14:42:50 +01:00
parent 867ad03995
commit cfa5885855
17 changed files with 36 additions and 36 deletions

View file

@ -20,9 +20,9 @@ ConsoleGlobalObject::ConsoleGlobalObject(JS::Realm& realm, Web::Bindings::Window
{
}
void ConsoleGlobalObject::initialize_global_object(JS::Realm& realm)
void ConsoleGlobalObject::initialize(JS::Realm& realm)
{
Base::initialize_global_object(realm);
Base::initialize(realm);
// $0 magic variable
define_native_accessor(realm, "$0", inspected_node_getter, nullptr, 0);