nodejs / node

Node.js JavaScript runtime ✨🐢🚀✨
https://nodejs.org
Other
107.53k stars 29.58k forks source link

Allow for infinite recursion #36681

Closed anor731 closed 3 years ago

anor731 commented 3 years ago
let x=( i=0, e=0, s='' )=> {
        process.stdout.write(((i==2)?'Fizz':''));
        process.stdout.write(((e==4)?'Buzz':'')+'\n');
        x( (i==2)?0:i+1, (e==4)?0:e+1 );
};  x()

Maximum call stack exceeded, Please make allowance for infinite recursion. Like parameter is enough.

devsnek commented 3 years ago

See https://bugs.chromium.org/p/v8/issues/detail?id=457