From 01ee1d921513df5069d75c5d1d404099f88e88bd Mon Sep 17 00:00:00 2001 From: Marko Lahma Date: Tue, 30 Jul 2024 13:08:18 +0300 Subject: [PATCH] Fix TypedArray.reduce tests against RAB MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * reduce callback has call signature «accumulator, kValue, 𝔽(k), O » --- .../prototype/reduce/resizable-buffer-grow-mid-iteration.js | 2 +- .../prototype/reduce/resizable-buffer-shrink-mid-iteration.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-grow-mid-iteration.js b/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-grow-mid-iteration.js index 46b7beeb2b8..d5aec2c57ad 100644 --- a/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-grow-mid-iteration.js +++ b/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-grow-mid-iteration.js @@ -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); } diff --git a/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-shrink-mid-iteration.js b/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-shrink-mid-iteration.js index e9de100daaf..0838d691b7c 100644 --- a/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-shrink-mid-iteration.js +++ b/test/built-ins/TypedArray/prototype/reduce/resizable-buffer-shrink-mid-iteration.js @@ -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); }