-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RAB: Integrate staging tests for the .every method #4074
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did the original PR have any tests for every()
on resizable buffers that don't shrink or grow? Most of the other PRs have had these tests.
test/built-ins/Array/prototype/every/resizable-buffer-grow-mid-iteration.js
Outdated
Show resolved
Hide resolved
@ptomato I just noticed I missed this comment. So indeed there were forgotten |
tc39#4074 (review) Adds forgotten tests from tc39#3888
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One typo that got into the revisions, feel free to merge after fixing that.
test/built-ins/Array/prototype/every/resizable-buffer-grow-mid-iteration.js
Outdated
Show resolved
Hide resolved
@ptomato reverted the scope changes but added documentation to makes things clearer and avoid potential future mistakes with the top level variables used. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
of Array.prototype and TypedArray.prototype This is part of PR tc39#3888 to make reviewing easier. Includes changes to use the helper ./harness/resizableArrayBufferUtils.js
Co-authored-by: Philip Chimento <philip.chimento@gmail.com>
tc39#4074 (review) Adds forgotten tests from tc39#3888
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 d9a2bac and + this reverts commit 0bc2d66. - Added documentation.
3fe52ab
to
5a80b31
Compare
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