mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02:00
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:
Notes:
sideshowbarker
2024-07-18 02:53:07 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/fe5c2b7bb99 Pull-request: https://github.com/SerenityOS/serenity/pull/10402 Reviewed-by: https://github.com/awesomekling ✅
@@ -79,7 +79,6 @@ protected:
|
||||
|
||||
private:
|
||||
virtual bool is_ecmascript_function_object() const override { return true; }
|
||||
virtual FunctionEnvironment* new_function_environment(Object* new_target) override;
|
||||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
void prepare_for_ordinary_call(ExecutionContext& callee_context, Object* new_target);
|
||||
|
||||
Reference in New Issue
Block a user