Skip to content

Website crash #20

@joooKiwi

Description

@joooKiwi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions