mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:07:34 +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
|
@ -9,9 +9,9 @@
|
|||
|
||||
namespace JS {
|
||||
|
||||
EnvironmentRecord::EnvironmentRecord(EnvironmentRecord* parent)
|
||||
EnvironmentRecord::EnvironmentRecord(EnvironmentRecord* outer_environment)
|
||||
: Object(vm().environment_record_shape())
|
||||
, m_parent(parent)
|
||||
, m_outer_environment(outer_environment)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@ EnvironmentRecord::EnvironmentRecord(GlobalObjectTag tag)
|
|||
void EnvironmentRecord::visit_edges(Visitor& visitor)
|
||||
{
|
||||
Base::visit_edges(visitor);
|
||||
visitor.visit(m_parent);
|
||||
visitor.visit(m_outer_environment);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue