mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Move ordinary_call_bind_this() 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:
parent
25bcd36116
commit
53af66d57d
Notes:
sideshowbarker
2024-07-18 02:53:11 +09:00
Author: https://github.com/linusg
Commit: 53af66d57d
Pull-request: https://github.com/SerenityOS/serenity/pull/10402
Reviewed-by: https://github.com/awesomekling ✅
4 changed files with 52 additions and 33 deletions
|
@ -83,6 +83,7 @@ private:
|
|||
virtual void visit_edges(Visitor&) override;
|
||||
|
||||
void prepare_for_ordinary_call(ExecutionContext& callee_context, Object* new_target);
|
||||
void ordinary_call_bind_this(ExecutionContext&, Value this_argument);
|
||||
Completion ordinary_call_evaluate_body();
|
||||
ThrowCompletionOr<void> function_declaration_instantiation(Interpreter*);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue