2 ms·
No it doesn't. At best it precludes a certain class of bugs (which may be very significant, but it's not a silver bullet)
by virgilp 9y ago
No it doesn't. At best it precludes a certain class of bugs (which may be very significant, but it's not a silver bullet)
- taf2 9y agovar stack = []; function ThisWillNeverCrash() { console.log('hello'); stack.push('it'); setTimeout(ThisWillNeverCrash, 0); } setTimeout(ThisWillNeverCrash, 0); // my point in posting this was to demonstrate a bug ... that array will eventually run out of memory and this loops infinitely but not using a standard language loop construct... but I see someone didn’t think that was relevant