Why only 0x80? To have a lot of headroom, in case the fn is also something recursive.
The real problem here is that a 1024**3 array will quickly use up your memory, even if you start filling it with 0, undefined or even pointers to the same object. It can only exist as sparse.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Here's one more that doesn't overflow stack :)
It's full of dumb hacks though, in real life I'd do this:
Why only
0x80
? To have a lot of headroom, in case thefn
is also something recursive.The real problem here is that a
1024**3
array will quickly use up your memory, even if you start filling it with0
,undefined
or even pointers to the same object. It can only exist as sparse.