-
Notifications
You must be signed in to change notification settings - Fork 496
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
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 not review the TypedArray tests. verified the with
and setFromHex
tests against my polyfills
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 1c03eb73265d4c6d57cff099c3f00aaced99075f
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929 UltraBlame original commit: 192b5d74f9ca4a7594142bf8fd789e2d5ab20b9c
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929 UltraBlame original commit: a7c3286c781fa3d67f2b75540b9be2c476e523a0
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 1c03eb73265d4c6d57cff099c3f00aaced99075f
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929 UltraBlame original commit: 192b5d74f9ca4a7594142bf8fd789e2d5ab20b9c
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929 UltraBlame original commit: a7c3286c781fa3d67f2b75540b9be2c476e523a0
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 1c03eb73265d4c6d57cff099c3f00aaced99075f
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929 UltraBlame original commit: 192b5d74f9ca4a7594142bf8fd789e2d5ab20b9c
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928 UltraBlame original commit: 4c54c405baf8acea20927e66c1dc6e9b88c25b25
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929 UltraBlame original commit: a7c3286c781fa3d67f2b75540b9be2c476e523a0
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929
…ototype.with. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248928
… array in lastIndexOf. r=jandem Test case in <tc39/test262#4477>. Differential Revision: https://phabricator.services.mozilla.com/D248929
test/built-ins/TypedArray/prototype/slice/speciesctor-return-same-buffer-with-offset.js
Outdated
Show resolved
Hide resolved
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.
34f0eb1
to
64accef
Compare
Regarding the However, I was also wondering if that is a spec omission and asked in es.discourse.group. At first sight it seems a bit odd to preserve the |
You might get more response there if you included a code sample that would show the difference. Personally I find the ArrayBuffer spec language difficult to reason about. |
I've been slowly working on that, and just opened tc39/ecma262#3629 for some preliminary feedback. |
@ptomato thanks for the tip, tried to add a little snippet, basically a smaller version of the test. Since it involved "detaching" a buffer at some point, it assumes there is some test or host engine facility to do that. In my example I used the QuickJS test262 runner convention. https://es.discourse.group/t/typedarray-subarray-byteoffset-with-detached-buffers/2381/2 |
Coverage for some implementation bugs in JSC, V8, and SpiderMonkey.