mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:17:45 +00:00
LibJS: Rename scope to environment
This is an editorial change in the ECMA-262 spec.
See: 3246553
This commit is contained in:
parent
cb66474fb5
commit
acda12597a
8 changed files with 43 additions and 43 deletions
|
@ -16,9 +16,9 @@ namespace JS {
|
|||
DeclarativeEnvironment* DeclarativeEnvironment::create_for_per_iteration_bindings(Badge<ForStatement>, DeclarativeEnvironment& other, size_t bindings_size)
|
||||
{
|
||||
auto bindings = other.m_bindings.span().slice(0, bindings_size);
|
||||
auto* parent_scope = other.outer_environment();
|
||||
auto* parent_environment = other.outer_environment();
|
||||
|
||||
return parent_scope->heap().allocate_without_global_object<DeclarativeEnvironment>(parent_scope, bindings);
|
||||
return parent_environment->heap().allocate_without_global_object<DeclarativeEnvironment>(parent_environment, bindings);
|
||||
}
|
||||
|
||||
DeclarativeEnvironment::DeclarativeEnvironment()
|
||||
|
@ -26,13 +26,13 @@ DeclarativeEnvironment::DeclarativeEnvironment()
|
|||
{
|
||||
}
|
||||
|
||||
DeclarativeEnvironment::DeclarativeEnvironment(Environment* parent_scope)
|
||||
: Environment(parent_scope)
|
||||
DeclarativeEnvironment::DeclarativeEnvironment(Environment* parent_environment)
|
||||
: Environment(parent_environment)
|
||||
{
|
||||
}
|
||||
|
||||
DeclarativeEnvironment::DeclarativeEnvironment(Environment* parent_scope, Span<Binding const> bindings)
|
||||
: Environment(parent_scope)
|
||||
DeclarativeEnvironment::DeclarativeEnvironment(Environment* parent_environment, Span<Binding const> bindings)
|
||||
: Environment(parent_environment)
|
||||
, m_bindings(bindings)
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue