mirror of
https://github.com/RGBCube/serenity
synced 2025-05-16 05:44:59 +00:00
LibJS: Remove unused FunctionObject::environment()
ECMAScriptFunctionObject::environment() can just be non-virtual.
This commit is contained in:
parent
9043041dd3
commit
2dba048146
2 changed files with 1 additions and 6 deletions
|
@ -47,7 +47,7 @@ public:
|
||||||
|
|
||||||
auto& bytecode_executable() const { return m_bytecode_executable; }
|
auto& bytecode_executable() const { return m_bytecode_executable; }
|
||||||
|
|
||||||
virtual Environment* environment() override { return m_environment; }
|
Environment* environment() { return m_environment; }
|
||||||
virtual Realm* realm() const override { return m_realm; }
|
virtual Realm* realm() const override { return m_realm; }
|
||||||
|
|
||||||
ConstructorKind constructor_kind() const { return m_constructor_kind; };
|
ConstructorKind constructor_kind() const { return m_constructor_kind; };
|
||||||
|
|
|
@ -27,11 +27,6 @@ public:
|
||||||
|
|
||||||
virtual bool is_strict_mode() const { return false; }
|
virtual bool is_strict_mode() const { return false; }
|
||||||
|
|
||||||
// [[Environment]]
|
|
||||||
// The Environment Record that the function was closed over.
|
|
||||||
// Used as the outer environment when evaluating the code of the function.
|
|
||||||
virtual Environment* environment() { return nullptr; }
|
|
||||||
|
|
||||||
// [[Realm]]
|
// [[Realm]]
|
||||||
virtual Realm* realm() const { return nullptr; }
|
virtual Realm* realm() const { return nullptr; }
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue