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:
parent
46f2c23030
commit
5edd259b0a
6 changed files with 30 additions and 29 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue