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

LibJS: Remove unused FunctionObject::environment()

ECMAScriptFunctionObject::environment() can just be non-virtual.
This commit is contained in:
Linus Groh 2021-09-25 09:10:22 +02:00
parent 9043041dd3
commit 2dba048146
2 changed files with 1 additions and 6 deletions

View file

@ -27,11 +27,6 @@ public:
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]]
virtual Realm* realm() const { return nullptr; }