summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp')
-rw-r--r--Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp
index 5153d2c58c..8fbefbecb5 100644
--- a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp
+++ b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.cpp
@@ -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)
{
}