mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 07:37:03 +00:00
LibJS: Make prepare_for_ordinary_call() new_target parameter an Object*
This got changed in the spec at some point, replacing the assertion in step 1 with "... and newTarget (an Object or undefined)" in the parameter description. Subsequently, there's now one step less, so the numbers all change.
This commit is contained in:
parent
f29a82dd84
commit
15c33477e4
Notes:
sideshowbarker
2024-07-18 04:11:13 +09:00
Author: https://github.com/linusg
Commit: 15c33477e4
Pull-request: https://github.com/SerenityOS/serenity/pull/9980
Reviewed-by: https://github.com/awesomekling ✅
2 changed files with 17 additions and 20 deletions
|
@ -284,7 +284,7 @@ private:
|
|||
void ordinary_call_bind_this(FunctionObject&, ExecutionContext&, Value this_argument);
|
||||
|
||||
[[nodiscard]] Value call_internal(FunctionObject&, Value this_value, Optional<MarkedValueList> arguments);
|
||||
void prepare_for_ordinary_call(FunctionObject&, ExecutionContext& callee_context, Value new_target);
|
||||
void prepare_for_ordinary_call(FunctionObject&, ExecutionContext& callee_context, Object* new_target);
|
||||
|
||||
Exception* m_exception { nullptr };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue