summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h')
-rw-r--r--Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
index 1e1c3149e4..e4434346e7 100644
--- a/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
+++ b/Userland/Libraries/LibJS/Runtime/DeclarativeEnvironment.h
@@ -13,14 +13,6 @@
namespace JS {
-struct Binding {
- Value value;
- bool strict;
- bool mutable_ { false };
- bool can_be_deleted { false };
- bool initialized { false };
-};
-
class DeclarativeEnvironment : public Environment {
JS_ENVIRONMENT(DeclarativeEnvironment, Environment);
@@ -52,6 +44,15 @@ private:
virtual bool is_declarative_environment() const override { return true; }
HashMap<FlyString, Variable> m_variables;
+
+ struct Binding {
+ Value value;
+ bool strict { false };
+ bool mutable_ { false };
+ bool can_be_deleted { false };
+ bool initialized { false };
+ };
+
HashMap<FlyString, Binding> m_bindings;
};