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:
Linus Groh 2021-09-11 20:43:24 +01:00
commit 15c33477e4
Notes: sideshowbarker 2024-07-18 04:11:13 +09:00
2 changed files with 17 additions and 20 deletions

View file

@ -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 };