While attempting to do a performance difference between different kind of loops (with at least 100,000 entries),
I've done a mistake in the loop. Making it an infinite loop.
But, for some reason, the application cannot recover from it
https://jsperf.app/pexuwo/1/preview
The code was something like
const array = [...new Array(100000)].map((_,i)=>i)
// first loop
for(const a of array);
// second loop
const a = array[Symbol.iterator]()
const b = a.next()
while(!b.done);
But with that, it was an infinite loop.
While attempting to do a performance difference between different kind of loops (with at least 100,000 entries),
I've done a mistake in the loop. Making it an infinite loop.
But, for some reason, the application cannot recover from it
https://jsperf.app/pexuwo/1/preview
The code was something like
But with that, it was an infinite loop.