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

LibJS: Rename ScriptFunction::m_parent_scope => m_environment

This is for the [[Environment]] slot so let's have a matching name. :^)
This commit is contained in:
Andreas Kling 2021-06-25 21:22:37 +02:00
parent 667bba2410
commit d436d6d565
2 changed files with 7 additions and 7 deletions

View file

@ -35,7 +35,7 @@ public:
auto& bytecode_executable() const { return m_bytecode_executable; }
virtual EnvironmentRecord* environment() override { return m_parent_scope; }
virtual EnvironmentRecord* environment() override { return m_environment; }
protected:
virtual bool is_strict_mode() const final { return m_is_strict; }
@ -53,7 +53,7 @@ private:
NonnullRefPtr<Statement> m_body;
const Vector<FunctionNode::Parameter> m_parameters;
Optional<Bytecode::Executable> m_bytecode_executable;
EnvironmentRecord* m_parent_scope { nullptr };
EnvironmentRecord* m_environment { nullptr };
i32 m_function_length { 0 };
FunctionKind m_kind { FunctionKind::Regular };
bool m_is_strict { false };