diff --git a/test/built-ins/Array/prototype/every/resizable-buffer-grow-mid-iteration.js b/test/built-ins/Array/prototype/every/resizable-buffer-grow-mid-iteration.js index dcc904ccaab..dc3e6c515c5 100644 --- a/test/built-ins/Array/prototype/every/resizable-buffer-grow-mid-iteration.js +++ b/test/built-ins/Array/prototype/every/resizable-buffer-grow-mid-iteration.js @@ -21,16 +21,12 @@ const ArrayEveryHelper = (ta, values, rab, resizeAfter, resizeTo) => { // [4, 6] << fixedLengthWithOffset // [0, 2, 4, 6, ...] << lengthTracking // [4, 6, ...] << lengthTrackingWithOffset -let values; -let rab; -let resizeAfter; -let resizeTo; for (let ctor of ctors) { - rab = CreateRabForTest(ctor); + const rab = CreateRabForTest(ctor); const fixedLength = new ctor(rab, 0, 4); - values = []; - resizeAfter = 2; - resizeTo = 5 * ctor.BYTES_PER_ELEMENT; + const values = []; + const resizeAfter = 2; + const resizeTo = 3 * ctor.BYTES_PER_ELEMENT; assert(ArrayEveryHelper(fixedLength, values, rab, resizeAfter, resizeTo)); assert.compareArray(values, [ 0,