1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00

LibJS: Move Binding struct into the DeclarativeEnvironment class

Nobody on the outside needs to access this.
This commit is contained in:
Andreas Kling 2021-07-01 12:31:39 +02:00
parent 44221756ab
commit 0fa141d058

View file

@ -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;
};