Ioanna M Dimitriou H d2596e2651
RAB: Integrate staging tests for the .every method (#4074)
* RAB: Integrate staging tests for the .every method
of Array.prototype and TypedArray.prototype

This is part of PR #3888 to make reviewing easier.
Includes changes to use the helper ./harness/resizableArrayBufferUtils.js

* Added missing includes

* Removed unnecessary function call.

* Apply suggestions from code review

* Applied review suggestion to the rest of the files

* Addressed forgotten review comment noting some files are missing.

https://github.com/tc39/test262/pull/4074#pullrequestreview-2046589557

Adds forgotten tests from #3888

* Addresses review comment.

* Fixed forgotten rename

* Simplify the tests and add documentation.

New approach replaces ...Helper with CollectResize to make the tests easier to understand.
In particular:
- Replaced the need for '...Helper' abstractions with a more descriptive
  function 'ResizeBufferMidIteration', which the .every method can call
  directly.
- Moved 'let values' back outside of the loops, together with a function
  definition 'ResizeBufferMidIteration' to persist the side effects that
  'CollectValuesAndResize' has on 'values' but without having to define
  this inside every loop.
  + So this reverts commit d9a2bac41f87f0964a43d34c6f349b6d78401633 and
  + this reverts commit 0bc2d66335671cac56912981b73c7900bf309cee.
- Added documentation.

* Documentation style change and remove accidental additions.
2024-06-28 16:42:09 -07:00
..
2024-03-25 12:05:06 +01:00
2024-03-25 12:05:06 +01:00
2024-03-25 12:05:06 +01:00
2024-03-25 12:05:06 +01:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00
2021-08-11 10:20:11 -04:00