summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-05-01 01:10:05 +0200
committerLinus Groh <mail@linusgroh.de>2022-05-01 22:47:38 +0200
commitacda12597ab9ebaf4e3d62a4e27b1ecd6c45d016 (patch)
treefdeaedd7d633f8ffb6815f9d262d2bb2529bea92 /Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
parentcb66474fb55ddd7e5b9f7186caf4a9c180518126 (diff)
downloadserenity-acda12597ab9ebaf4e3d62a4e27b1ecd6c45d016.zip
LibJS: Rename scope to environment
This is an editorial change in the ECMA-262 spec. See: https://github.com/tc39/ecma262/commit/3246553
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
index d22fab88d3..53ff5a7a5d 100644
--- a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
@@ -30,8 +30,8 @@ public:
static DeclarativeEnvironment* create_for_per_iteration_bindings(Badge<ForStatement>, DeclarativeEnvironment& other, size_t bindings_size);
DeclarativeEnvironment();
- explicit DeclarativeEnvironment(Environment* parent_scope);
- explicit DeclarativeEnvironment(Environment* parent_scope, Span<Binding const> bindings);
+ explicit DeclarativeEnvironment(Environment* parent_environment);
+ explicit DeclarativeEnvironment(Environment* parent_environment, Span<Binding const> bindings);
virtual ~DeclarativeEnvironment() override = default;
virtual ThrowCompletionOr<bool> has_binding(FlyString const& name, Optional<size_t>* = nullptr) const override;