mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49: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
Notes:
sideshowbarker
2024-07-18 11:56:28 +09:00
Author: https://github.com/awesomekling
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