mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-30 00:31:14 +00:00
LibJS: Make sure this
in the global environment is the global object
Fixes regressed with 0f9038b732
.
This commit is contained in:
parent
49018553d3
commit
9683b10aec
Notes:
sideshowbarker
2024-07-18 11:29:02 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/9683b10aec4
|
@ -99,7 +99,7 @@ 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_record = heap().allocate_without_global_object<GlobalEnvironmentRecord>(*this);
|
||||
m_environment_record = heap().allocate<GlobalEnvironmentRecord>(*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);
|
||||
|
|
Loading…
Reference in a new issue