mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:17:35 +00:00
LibJS: Move Binding struct into the DeclarativeEnvironment class
Nobody on the outside needs to access this.
This commit is contained in:
parent
44221756ab
commit
0fa141d058
1 changed files with 9 additions and 8 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue