-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Can't create array larger than 2**26 items #58197
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
Comments
There's nothing in the language spec that requires engines to have an array that long; however, |
It is definitely a V8 engine issue. |
NVM, I think I found the issue from the V8 engine. That commit just messes around with the Array length and it was introduced to the V8 v13.x-series |
Maybe related https://github.com/RafaelGSS/nodejs-bench-operations/actions/runs/14866441608/job/41744580099. This benchmark runs successfully on all previous Node.js versions except v24. |
* Remove the fail-node18 failure reason, and mark those tests as passing now. * Add fail-lt-node24 failure reason, and use it on Float16Array tests. * Tweak the timeout-with-gc test to use an array size which is compatible with Node.js v24. (Possibly related to nodejs/node#58197.)
Version
v24.0.0
Platform
Subsystem
No response
What steps will reproduce the bug?
Works:
Fails:
In v22.15.0 this works fine.
How often does it reproduce? Is there a required condition?
Always
What is the expected behavior? Why is that the expected behavior?
It should be possible to create arrays with 2**32 elements.
What do you see instead?
RangeError: Invalid array length
Additional information
No response
The text was updated successfully, but these errors were encountered: