LibJS: Change Array by copy proposal implementation status
linusg opened this issue · comments
PRs:
TODO:
- Fix https://github.com/tc39/test262/blob/main/test/built-ins/TypedArray/prototype/with/index-bigger-or-eq-than-length.js
- Fix https://github.com/tc39/test262/blob/main/test/built-ins/TypedArray/prototype/with/index-smaller-than-minus-length.js
- Update spec links after stage 4 (#17943)
Test262:
- https://libjs.dev/test262/per-file/?path=test/built-ins/Array/prototype/toReversed
- https://libjs.dev/test262/per-file/?path=test/built-ins/Array/prototype/toSorted
- https://libjs.dev/test262/per-file/?path=test/built-ins/Array/prototype/toSpliced
- https://libjs.dev/test262/per-file/?path=test/built-ins/Array/prototype/with
- https://libjs.dev/test262/per-file/?path=test/built-ins/TypedArray/prototype/toReversed
- https://libjs.dev/test262/per-file/?path=test/built-ins/TypedArray/prototype/toSorted
- https://libjs.dev/test262/per-file/?path=test/built-ins/TypedArray/prototype/with
We also fail https://github.com/tc39/test262/blob/main/test/built-ins/TypedArray/prototype/with/index-smaller-than-minus-length.js, which I added to the description. The issue is we're happily overflowing from a large double (2^53) to a u32 when we create CanonicalIndex
and carrying on.