News for hackers. Stuff that matters.
Re:Major new iOS bug can crash iPhones and disable access to... by taf2 on Thursday February 15, 2018 @11:49AM (#16385477)
var 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

There are no comments on this comment yet.