mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +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
Notes:
sideshowbarker
2024-07-17 17:40:13 +09:00
Author: https://github.com/linusg
Commit: acda12597a
Pull-request: https://github.com/SerenityOS/serenity/pull/13874
Reviewed-by: https://github.com/IdanHo ✅
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