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

LibJS: Move prepare_for_ordinary_call() to ECMAScriptFunctionObject

Now that it only needs to deal with ECMAScriptFunctionObject via
internal_call() / internal_construct(), we can:

- Remove the generic FunctionObject parameter
- Move it from the VM to ECMAScriptFunctionObject
- Make it private
This commit is contained in:
Linus Groh 2021-10-08 21:14:22 +01:00
parent cf168fac50
commit 25bcd36116
4 changed files with 62 additions and 60 deletions

View file

@ -275,7 +275,6 @@ public:
void restore_execution_context_stack();
// TODO: Move these elsewhere once only used for ECMAScriptFunctionObject.
void prepare_for_ordinary_call(FunctionObject&, ExecutionContext& callee_context, Object* new_target);
void ordinary_call_bind_this(FunctionObject&, ExecutionContext&, Value this_argument);
private: