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
"Cannot read property '0' of undefined" on repeated Vector.appendAll #17
Comments
Simpler test case: import { Vector } from 'prelude.ts';
Vector.ofIterable(Array(86015).fill(1)).appendAll([1]); |
3071 is another magic length that will break appendAll. Both 3071 and 86015 have the property: N % 32 === 31 && Math.floor(N / 32) % 32 === 31 |
Thank you for the report! I'll look into this tonight. You're not really lucky with prelude bugs.. note that I just added a fuzzer test on master exactly to detect such issues. |
Well, I'm using it in a production system, so that tends to find all the edge cases! :) |
I released 0.7.13 with the fix! Thank you for the patience and the detailed bug reports! |
This code:
Will fail after 86 iterations with:
The text was updated successfully, but these errors were encountered: