mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibJS: Move [[ThisMode]] to ECMAScriptFunctionObject
This commit is contained in:
parent
ce946dd656
commit
1e97a85095
4 changed files with 13 additions and 16 deletions
|
@ -50,16 +50,6 @@ public:
|
|||
// [[Realm]]
|
||||
virtual Realm* realm() const { return nullptr; }
|
||||
|
||||
enum class ThisMode : u8 {
|
||||
Lexical,
|
||||
Strict,
|
||||
Global,
|
||||
};
|
||||
|
||||
// [[ThisMode]]
|
||||
ThisMode this_mode() const { return m_this_mode; }
|
||||
void set_this_mode(ThisMode this_mode) { m_this_mode = this_mode; }
|
||||
|
||||
// This is for IsSimpleParameterList (static semantics)
|
||||
bool has_simple_parameter_list() const { return m_has_simple_parameter_list; }
|
||||
|
||||
|
@ -88,7 +78,6 @@ private:
|
|||
Vector<Value> m_bound_arguments;
|
||||
Object* m_home_object { nullptr };
|
||||
ConstructorKind m_constructor_kind = ConstructorKind::Base;
|
||||
ThisMode m_this_mode { ThisMode::Global };
|
||||
bool m_has_simple_parameter_list { false };
|
||||
Vector<InstanceField> m_fields;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue