1
Fork 0
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:
Andreas Kling 2021-06-21 23:35:30 +02:00
parent 46f2c23030
commit 5edd259b0a
6 changed files with 30 additions and 29 deletions

View file

@ -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;
}