mirror of
https://github.com/RGBCube/serenity
synced 2025-06-29 01:42:11 +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
|
@ -231,7 +231,7 @@ Value CallExpression::execute(Interpreter& interpreter, GlobalObject& global_obj
|
|||
// and subsequently GetThisEnvironment() instead.
|
||||
auto* function_environment = interpreter.current_environment();
|
||||
if (!function_environment->current_function())
|
||||
function_environment = static_cast<DeclarativeEnvironmentRecord*>(function_environment->parent());
|
||||
function_environment = static_cast<DeclarativeEnvironmentRecord*>(function_environment->outer_environment());
|
||||
|
||||
auto* super_constructor = function_environment->current_function()->prototype();
|
||||
// FIXME: Functions should track their constructor kind.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue