LibJS: Decouple new_function_environment() from FunctionObject

Now that only ECMAScriptFunctionObject uses this, we can remove the
FunctionObject::new_function_environment() pure virtual method and just
implement it as a standalone AO with an ECMAScriptFunctionObject
parameter, next to the other NewFooEnvironment AOs.
This commit is contained in:
Linus Groh 2021-10-08 21:24:51 +01:00
commit fe5c2b7bb9
Notes: sideshowbarker 2024-07-18 02:53:07 +09:00
11 changed files with 30 additions and 43 deletions

View file

@ -22,7 +22,6 @@ public:
virtual ~ProxyObject() override;
virtual const FlyString& name() const override;
virtual FunctionEnvironment* new_function_environment(Object* new_target) override;
virtual bool has_constructor() const override { return true; }
const Object& target() const { return m_target; }