-
-
Notifications
You must be signed in to change notification settings - Fork 672
array.length set to lower value should remove items properly #900
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
Can't reproduce this |
And that's always works properly and often used. Could you recheck? |
Reproduced with following steps
2
result
https://gist.github.com/vird/e0fb47a79696fd87a54b920fa58d02ac |
That's strange. I reproduced this only locally with Output with (asc --debug):
|
array.length manipulations allowed in JS/TS so I tried this
It produces
Uncaught Error: abort: Index out of range at ~lib/rt.ts:22:27
Also setting length to higher values should allocate more memory, but fill with 0 (because on array deallocation it would try free pointer to garbage)
The text was updated successfully, but these errors were encountered: