mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibJS: Rename EnvironmentRecord::parent() => outer_environment()
This name matches the spec (corresponds to the [[OuterEnv]] slot.)
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user