1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:28:11 +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

@ -41,12 +41,12 @@ bool ObjectEnvironmentRecord::delete_from_scope(FlyString const& name)
bool ObjectEnvironmentRecord::has_this_binding() const
{
return parent()->has_this_binding();
return outer_environment()->has_this_binding();
}
Value ObjectEnvironmentRecord::get_this_binding(GlobalObject& global_object) const
{
return parent()->get_this_binding(global_object);
return outer_environment()->get_this_binding(global_object);
}
}