summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-01 12:31:39 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-01 12:31:39 +0200
commit0fa141d058742c563afd1290fd514334a7e0f184 (patch)
tree2f4ccda19451d92c4d0880de5a2ee974154059d6 /Userland
parent44221756ab7515617450400bf23d0e8df486c2b7 (diff)
downloadserenity-0fa141d058742c563afd1290fd514334a7e0f184.zip
LibJS: Move Binding struct into the DeclarativeEnvironment class
Nobody on the outside needs to access this.
Diffstat (limited to 'Userland')
-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;
};