From 5a80b3146a44e9de000eeb7b15eee86fd4d8af1a Mon Sep 17 00:00:00 2001 From: "Ioanna M. Dimitriou H" Date: Sat, 29 Jun 2024 01:16:39 +0200 Subject: [PATCH] Documentation style change and remove accidental additions. --- .../every/resizable-buffer-grow-mid-iteration.js | 8 ++++---- .../every/resizable-buffer-shrink-mid-iteration.js | 8 ++++---- .../Array/prototype/every/resizable-buffer.js | 14 -------------- .../every/resizable-buffer-grow-mid-iteration.js | 8 ++++---- .../every/resizable-buffer-shrink-mid-iteration.js | 8 ++++---- .../TypedArray/prototype/every/resizable-buffer.js | 14 -------------- 6 files changed, 16 insertions(+), 44 deletions(-) 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 06065534ac..86335ebbb0 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 @@ -14,10 +14,10 @@ let values; let rab; let resizeAfter; let resizeTo; -// Collects the view of the resizable array buffer "rab" into "values", with an -// iteration during which, after "resizeAfter" steps, "rab" is resized to length -// "resizeTo". To be called by a method of the view being collected. -// Note that "rab", "values", "resizeAfter", and "resizeTo" may need to be reset +// Collects the view of the resizable array buffer rab into values, with an +// iteration during which, after resizeAfter steps, rab is resized to length +// 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 ResizeBufferMidIteration(n) { // Returns true by default. diff --git a/test/built-ins/Array/prototype/every/resizable-buffer-shrink-mid-iteration.js b/test/built-ins/Array/prototype/every/resizable-buffer-shrink-mid-iteration.js index 4b4866ce89..69179672a1 100644 --- a/test/built-ins/Array/prototype/every/resizable-buffer-shrink-mid-iteration.js +++ b/test/built-ins/Array/prototype/every/resizable-buffer-shrink-mid-iteration.js @@ -14,10 +14,10 @@ let values; let rab; let resizeAfter; let resizeTo; -// Collects the view of the resizable array buffer "rab" into "values", with an -// iteration during which, after "resizeAfter" steps, "rab" is resized to length -// "resizeTo". To be called by a method of the view being collected. -// Note that "rab", "values", "resizeAfter", and "resizeTo" may need to be reset +// Collects the view of the resizable array buffer rab into values, with an +// iteration during which, after resizeAfter steps, rab is resized to length +// 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 ResizeBufferMidIteration(n) { // Returns true by default. diff --git a/test/built-ins/Array/prototype/every/resizable-buffer.js b/test/built-ins/Array/prototype/every/resizable-buffer.js index 818cb006f9..b6f68e0f69 100644 --- a/test/built-ins/Array/prototype/every/resizable-buffer.js +++ b/test/built-ins/Array/prototype/every/resizable-buffer.js @@ -10,20 +10,6 @@ includes: [resizableArrayBufferUtils.js ] features: [resizable-arraybuffer] ---*/ -let values; -let rab; -let resizeAfter; -let resizeTo; -// Collects the view of the resizable array buffer "rab" into "values", with an -// iteration during which, after "resizeAfter" steps, "rab" is resized to length -// "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 ResizeBufferMidIteration(n) { - // Returns true by default. - return CollectValuesAndResize(n, values, rab, resizeAfter, resizeTo); -} - for (let ctor of ctors) { const rab = CreateResizableArrayBuffer(4 * ctor.BYTES_PER_ELEMENT, 8 * ctor.BYTES_PER_ELEMENT); const fixedLength = new ctor(rab, 0, 4); diff --git a/test/built-ins/TypedArray/prototype/every/resizable-buffer-grow-mid-iteration.js b/test/built-ins/TypedArray/prototype/every/resizable-buffer-grow-mid-iteration.js index 29cf537bec..e588f165be 100644 --- a/test/built-ins/TypedArray/prototype/every/resizable-buffer-grow-mid-iteration.js +++ b/test/built-ins/TypedArray/prototype/every/resizable-buffer-grow-mid-iteration.js @@ -14,10 +14,10 @@ let values; let rab; let resizeAfter; let resizeTo; -// Collects the view of the resizable array buffer "rab" into "values", with an -// iteration during which, after "resizeAfter" steps, "rab" is resized to length -// "resizeTo". To be called by a method of the view being collected. -// Note that "rab", "values", "resizeAfter", and "resizeTo" may need to be reset +// Collects the view of the resizable array buffer rab into values, with an +// iteration during which, after resizeAfter steps, rab is resized to length +// 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 ResizeBufferMidIteration(n) { // Returns true by default. diff --git a/test/built-ins/TypedArray/prototype/every/resizable-buffer-shrink-mid-iteration.js b/test/built-ins/TypedArray/prototype/every/resizable-buffer-shrink-mid-iteration.js index 573e21b386..b677ae1db8 100644 --- a/test/built-ins/TypedArray/prototype/every/resizable-buffer-shrink-mid-iteration.js +++ b/test/built-ins/TypedArray/prototype/every/resizable-buffer-shrink-mid-iteration.js @@ -14,10 +14,10 @@ let values; let rab; let resizeAfter; let resizeTo; -// Collects the view of the resizable array buffer "rab" into "values", with an -// iteration during which, after "resizeAfter" steps, "rab" is resized to length -// "resizeTo". To be called by a method of the view being collected. -// Note that "rab", "values", "resizeAfter", and "resizeTo" may need to be reset +// Collects the view of the resizable array buffer rab into values, with an +// iteration during which, after resizeAfter steps, rab is resized to length +// 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 ResizeBufferMidIteration(n) { // Returns true by default. diff --git a/test/built-ins/TypedArray/prototype/every/resizable-buffer.js b/test/built-ins/TypedArray/prototype/every/resizable-buffer.js index 6da38a9309..22369d6271 100644 --- a/test/built-ins/TypedArray/prototype/every/resizable-buffer.js +++ b/test/built-ins/TypedArray/prototype/every/resizable-buffer.js @@ -10,20 +10,6 @@ includes: [resizableArrayBufferUtils.js] features: [resizable-arraybuffer] ---*/ -let values; -let rab; -let resizeAfter; -let resizeTo; -// Collects the view of the resizable array buffer "rab" into "values", with an -// iteration during which, after "resizeAfter" steps, "rab" is resized to length -// "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 ResizeBufferMidIteration(n) { - // Returns true by default. - return CollectValuesAndResize(n, values, rab, resizeAfter, resizeTo); -} - for (let ctor of ctors) { const rab = CreateResizableArrayBuffer(4 * ctor.BYTES_PER_ELEMENT, 8 * ctor.BYTES_PER_ELEMENT); const fixedLength = new ctor(rab, 0, 4);