mirror of
https://github.com/tc39/test262.git
synced 2025-06-03 21:50:33 +02:00
* 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.