refactor: use usize for Array, ArrayBuffer, TypedArray, DataView#4787
refactor: use usize for Array, ArrayBuffer, TypedArray, DataView#4787zhuzhu81998 wants to merge 13 commits into
usize for Array, ArrayBuffer, TypedArray, DataView#4787Conversation
Test262 conformance changes
Tested main commit: |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4787 +/- ##
===========================================
+ Coverage 47.24% 59.25% +12.00%
===========================================
Files 476 563 +87
Lines 46892 62790 +15898
===========================================
+ Hits 22154 37204 +15050
- Misses 24738 25586 +848 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
usize for Array, ArrayBuffer, TypedArray, DataViewusize for Array, ArrayBuffer, TypedArray, DataView
30e3308 to
753a738
Compare
usize for Array, ArrayBuffer, TypedArray, DataViewusize for Array, ArrayBuffer, TypedArray, DataView
hansl
left a comment
There was a problem hiding this comment.
Just a nit, that's not a useful conversion. You can use MAX_SAFE_INTEGER_I64.
|
just saw #4083 😅 (@jedel1043 ig the "spec-related checks" reasons are rediscovered) |
|
I think we just need to ensure we evaluate spec-related checks before rejecting indices bigger than |
|
For good measure we should still test this on a 32-bit system |
well if we dont reject indices bigger than |
hmm dont have one. dont think github action runner has that either |
2c80102 to
b5a7d76
Compare
cross-compiling does not work out of the box because of |
b5a7d76 to
e1cbbe3
Compare
|
Oof, let me see if I can fix those |
I think the problem is that on 32-bit targets (or anything that is not 64-bit), the exact bytes allocated will be different, because of the different pointer sizes, so this will fail 😂 : Line 215 in 94360bf |
e1cbbe3 to
606841a
Compare
|
#5090 added CI for 32-bit targets, so it should be much easier to catch bugs on this now |
very nice. |
|
I can also test this on my ARMv7, or you can use QEMU to spin up an emulated one. |
|
Ran the test262 suite using cross on the Broken tests (55): |
|
thanks, will have a look later. |
|
Btw if you install Just don't run the full suite because it consistently OOM'd for me, too much memory usage from all the thousands of tests running haha |
sigh.... |

Closes #4766 .
Many lines of changes are just deleting
as usizereally.