You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// nodejs max limit// const arraySize = 125077;// bun max limitconstarraySize=65536;constdata=Array(arraySize+1).fill(0);constotherData=[];otherData.push(...data);
What is the expected behavior?
No failure.
What do you see instead?
RangeError: Maximum call stack size exceeded.
Additional information
I'm actually not sure if it is a real issue in Bun and should be fixed because I don't think the max value is declared anywhere (but on the other side, I'd not expect to see a UB in JavaScript in this case 😄). I also tried Firefox and it seems they have even higher than in nodejs (sorry I haven't checked the exact value). But maybe it is worth to increase the limit to at least what nodejs provides so users would see the same behavior between runtimes? Feel free to close it if you don't think it is worth it tho.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.1.3
What platform is your computer?
Microsoft Windows NT 10.0.19045.0 x64
What steps can reproduce the bug?
What is the expected behavior?
No failure.
What do you see instead?
Additional information
I'm actually not sure if it is a real issue in Bun and should be fixed because I don't think the max value is declared anywhere (but on the other side, I'd not expect to see a UB in JavaScript in this case 😄). I also tried Firefox and it seems they have even higher than in nodejs (sorry I haven't checked the exact value). But maybe it is worth to increase the limit to at least what nodejs provides so users would see the same behavior between runtimes? Feel free to close it if you don't think it is worth it tho.
The text was updated successfully, but these errors were encountered: