1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 08:08:12 +00:00

LibJS: Move has_simple_parameter_list to ECMAScriptFunctionObject

This commit is contained in:
Linus Groh 2021-09-25 00:10:09 +02:00
parent 76eb8fe717
commit a08292d76c
4 changed files with 7 additions and 9 deletions

View file

@ -68,6 +68,9 @@ public:
Vector<InstanceField> const& fields() const { return m_fields; }
void add_field(StringOrSymbol property_key, ECMAScriptFunctionObject* initializer) { m_fields.empend(property_key, initializer); }
// This is for IsSimpleParameterList (static semantics)
bool has_simple_parameter_list() const { return m_has_simple_parameter_list; }
protected:
virtual bool is_strict_mode() const final { return m_strict; }
@ -95,6 +98,7 @@ private:
i32 m_function_length { 0 };
FunctionKind m_kind { FunctionKind::Regular };
bool m_is_arrow_function { false };
bool m_has_simple_parameter_list { false };
};
}