mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:47:44 +00:00
LibJS: Move the GlobalEnvironment from GlobalObject to Realm
This is where the spec wants to have it. Requires a couple of hacks as currently everything that needs a Realm actually has a GlobalObject, so we need to go via the Interpreter.
This commit is contained in:
parent
1e79934acf
commit
f29a82dd84
6 changed files with 13 additions and 16 deletions
|
@ -129,8 +129,6 @@ void GlobalObject::initialize_global_object()
|
|||
m_object_prototype = heap().allocate_without_global_object<ObjectPrototype>(*this);
|
||||
m_function_prototype = heap().allocate_without_global_object<FunctionPrototype>(*this);
|
||||
|
||||
m_environment = heap().allocate<GlobalEnvironment>(*this, *this, *this);
|
||||
|
||||
m_new_object_shape = vm.heap().allocate_without_global_object<Shape>(*this);
|
||||
m_new_object_shape->set_prototype_without_transition(m_object_prototype);
|
||||
|
||||
|
@ -293,7 +291,6 @@ void GlobalObject::visit_edges(Visitor& visitor)
|
|||
visitor.visit(m_new_ordinary_function_prototype_object_shape);
|
||||
visitor.visit(m_proxy_constructor);
|
||||
visitor.visit(m_generator_object_prototype);
|
||||
visitor.visit(m_environment);
|
||||
visitor.visit(m_array_prototype_values_function);
|
||||
visitor.visit(m_eval_function);
|
||||
visitor.visit(m_temporal_time_zone_prototype_get_offset_nanoseconds_for_function);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue