mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 22:35:07 +00:00
LibJS: Rename EnvironmentRecord::parent() => outer_environment()
This name matches the spec (corresponds to the [[OuterEnv]] slot.)
This commit is contained in:
parent
46f2c23030
commit
5edd259b0a
6 changed files with 30 additions and 29 deletions
|
@ -144,7 +144,7 @@ void Interpreter::exit_scope(const ScopeNode& scope_node)
|
|||
while (!m_scope_stack.is_empty()) {
|
||||
auto popped_scope = m_scope_stack.take_last();
|
||||
if (popped_scope.pushed_environment)
|
||||
vm().call_frame().environment_record = vm().call_frame().environment_record->parent();
|
||||
vm().call_frame().environment_record = vm().call_frame().environment_record->outer_environment();
|
||||
if (popped_scope.scope_node.ptr() == &scope_node)
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue