mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:57:45 +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:
parent
ea81dc13cf
commit
d792200a55
11 changed files with 30 additions and 29 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue