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

LibJS: Rename GlobalObject::initialize() => initialize_global_object()

This function was shadowing Object::initialize() which cannot be called
on global objects and has a different set of parameters.
This commit is contained in:
Andreas Kling 2021-03-17 16:52:26 +01:00
parent ea81dc13cf
commit d792200a55
11 changed files with 30 additions and 29 deletions

View file

@ -53,7 +53,7 @@ public:
auto interpreter = adopt_own(*new Interpreter(vm));
VM::InterpreterExecutionScope scope(*interpreter);
interpreter->m_global_object = make_handle(static_cast<Object*>(interpreter->heap().allocate_without_global_object<GlobalObjectType>(forward<Args>(args)...)));
static_cast<GlobalObjectType*>(interpreter->m_global_object.cell())->initialize();
static_cast<GlobalObjectType*>(interpreter->m_global_object.cell())->initialize_global_object();
return interpreter;
}

View file

@ -82,7 +82,7 @@ GlobalObject::GlobalObject()
{
}
void GlobalObject::initialize()
void GlobalObject::initialize_global_object()
{
auto& vm = this->vm();

View file

@ -37,7 +37,7 @@ class GlobalObject : public ScopeObject {
public:
explicit GlobalObject();
virtual void initialize();
virtual void initialize_global_object();
virtual ~GlobalObject() override;