diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-21 23:17:24 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-21 23:49:50 +0200 |
commit | 6c6dbcfc36e4603e40f403964207142664b96e46 (patch) | |
tree | e36afd55a79f2a9c01878368b3b04fce789a846b /Userland/Libraries/LibJS/Runtime/ScriptFunction.h | |
parent | e9b4a0a8309098ea47a35cfac45be7fff5955140 (diff) | |
download | serenity-6c6dbcfc36e4603e40f403964207142664b96e46.zip |
LibJS: Rename Environment Records so they match the spec :^)
This patch makes the following name changes:
- ScopeObject => EnvironmentRecord
- LexicalEnvironment => DeclarativeEnvironmentRecord
- WithScope => ObjectEnvironmentRecord
Diffstat (limited to 'Userland/Libraries/LibJS/Runtime/ScriptFunction.h')
-rw-r--r-- | Userland/Libraries/LibJS/Runtime/ScriptFunction.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Libraries/LibJS/Runtime/ScriptFunction.h b/Userland/Libraries/LibJS/Runtime/ScriptFunction.h index f4d1f892f1..ab558c044d 100644 --- a/Userland/Libraries/LibJS/Runtime/ScriptFunction.h +++ b/Userland/Libraries/LibJS/Runtime/ScriptFunction.h @@ -16,9 +16,9 @@ class ScriptFunction final : public Function { JS_OBJECT(ScriptFunction, Function); public: - static ScriptFunction* create(GlobalObject&, const FlyString& name, const Statement& body, Vector<FunctionNode::Parameter> parameters, i32 m_function_length, ScopeObject* parent_scope, FunctionKind, bool is_strict, bool is_arrow_function = false); + static ScriptFunction* create(GlobalObject&, const FlyString& name, const Statement& body, Vector<FunctionNode::Parameter> parameters, i32 m_function_length, EnvironmentRecord* parent_scope, FunctionKind, bool is_strict, bool is_arrow_function = false); - ScriptFunction(GlobalObject&, const FlyString& name, const Statement& body, Vector<FunctionNode::Parameter> parameters, i32 m_function_length, ScopeObject* parent_scope, Object& prototype, FunctionKind, bool is_strict, bool is_arrow_function = false); + ScriptFunction(GlobalObject&, const FlyString& name, const Statement& body, Vector<FunctionNode::Parameter> parameters, i32 m_function_length, EnvironmentRecord* parent_scope, Object& prototype, FunctionKind, bool is_strict, bool is_arrow_function = false); virtual void initialize(GlobalObject&) override; virtual ~ScriptFunction(); @@ -39,7 +39,7 @@ protected: virtual bool is_strict_mode() const final { return m_is_strict; } private: - virtual LexicalEnvironment* create_environment() override; + virtual DeclarativeEnvironmentRecord* create_environment_record() override; virtual void visit_edges(Visitor&) override; Value execute_function_body(); @@ -51,7 +51,7 @@ private: NonnullRefPtr<Statement> m_body; const Vector<FunctionNode::Parameter> m_parameters; Optional<Bytecode::Executable> m_bytecode_executable; - ScopeObject* m_parent_scope { nullptr }; + EnvironmentRecord* m_parent_scope { nullptr }; i32 m_function_length { 0 }; FunctionKind m_kind { FunctionKind::Regular }; bool m_is_strict { false }; |