-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels