mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
Fix TypedArray.reduce tests against RAB
* reduce callback has call signature «accumulator, kValue, 𝔽(k), O »
This commit is contained in:
parent
dc36c7eae9
commit
5dc04b7332
test/built-ins/TypedArray/prototype/reduce
@ -19,7 +19,7 @@ let resizeTo;
|
||||
// resizeTo. To be called by a method of the view being collected.
|
||||
// Note that rab, values, resizeAfter, and resizeTo may need to be reset
|
||||
// before calling this.
|
||||
function ResizeMidIteration(n) {
|
||||
function ResizeMidIteration(acc, n) {
|
||||
// Returns true by default.
|
||||
return CollectValuesAndResize(n, values, rab, resizeAfter, resizeTo);
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ let resizeTo;
|
||||
// resizeTo. To be called by a method of the view being collected.
|
||||
// Note that rab, values, resizeAfter, and resizeTo may need to be reset
|
||||
// before calling this.
|
||||
function ResizeMidIteration(n) {
|
||||
function ResizeMidIteration(acc, n) {
|
||||
return CollectValuesAndResize(n, values, rab, resizeAfter, resizeTo);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user