Skip to content

Add coverage for some implementation bugs in Array and TypedArray methods #4477

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

anba
Copy link
Contributor

@anba anba commented May 12, 2025

Coverage for some implementation bugs in JSC, V8, and SpiderMonkey.

anba added 7 commits May 12, 2025 15:57
SpiderMonkey doesn't handle this correctly for `Array.prototype.with`.
V8 doesn't handle this correctly for zero length typed arrays.
…ed)Array.prototype.with

JSC doesn't handle this correctly for `TypedArray.prototype.with`.
…rototype.with

V8 doesn't handle this case correctly.
SpiderMonkey doesn't handle this case correctly.
…backing buffer

JSC doesn't handle this case correctly.
…ype.subarray

JSC doesn't handle this case correctly.
@anba anba requested a review from a team as a code owner May 12, 2025 14:04
ljharb added a commit to es-shims/Array.prototype.with that referenced this pull request May 12, 2025
Copy link
Member

@ljharb ljharb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did not review the TypedArray tests. verified the with and setFromHex tests against my polyfills

ljharb added a commit to es-shims/es-arraybuffer-base64 that referenced this pull request May 12, 2025
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request May 13, 2025
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request May 13, 2025
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request May 13, 2025
lando-prod-mozilla bot pushed a commit to mozilla-firefox/firefox that referenced this pull request May 13, 2025
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 13, 2025
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 13, 2025
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 13, 2025
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 13, 2025
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 14, 2025
…ototype.with. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248928

UltraBlame original commit: 1c03eb73265d4c6d57cff099c3f00aaced99075f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 14, 2025
… array in lastIndexOf. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248929

UltraBlame original commit: 192b5d74f9ca4a7594142bf8fd789e2d5ab20b9c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 14, 2025
…ototype.with. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248928

UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request May 14, 2025
… array in lastIndexOf. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248929

UltraBlame original commit: a7c3286c781fa3d67f2b75540b9be2c476e523a0
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 14, 2025
…ototype.with. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248928

UltraBlame original commit: 1c03eb73265d4c6d57cff099c3f00aaced99075f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 14, 2025
… array in lastIndexOf. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248929

UltraBlame original commit: 192b5d74f9ca4a7594142bf8fd789e2d5ab20b9c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 14, 2025
…ototype.with. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248928

UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request May 14, 2025
… array in lastIndexOf. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248929

UltraBlame original commit: a7c3286c781fa3d67f2b75540b9be2c476e523a0
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 14, 2025
…ototype.with. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248928

UltraBlame original commit: 1c03eb73265d4c6d57cff099c3f00aaced99075f
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 14, 2025
… array in lastIndexOf. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248929

UltraBlame original commit: 192b5d74f9ca4a7594142bf8fd789e2d5ab20b9c
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 14, 2025
…ototype.with. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248928

UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request May 14, 2025
… array in lastIndexOf. r=jandem

Test case in <tc39/test262#4477>.

Differential Revision: https://phabricator.services.mozilla.com/D248929

UltraBlame original commit: a7c3286c781fa3d67f2b75540b9be2c476e523a0
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request May 15, 2025
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request May 15, 2025
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request May 15, 2025
i3roly pushed a commit to i3roly/firefox-dynasty that referenced this pull request May 15, 2025
…ame-buffer-with-offset.js

Co-authored-by: Richard Gibson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants