This code Crashes chrome tab #1

mafee6

Mafee7

Posted on June 27, 2021

This code Crashes chrome tab #1

Yes this is NOT a while() loop crash.
Sorry, I was busy making apps - couldn't post :(

This is part 1, the second one is being investigated, & ACTUALLY Crashes the browser window!

Error: Out of memory.

Result of A list which has 10 million items in it!

You try this code in jsfiddle/tab.

code:

var list = [];

setInterval(() => {
    list.push("crash")

    list.forEach(item => {
        list.push(item);
    });
});
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
mafee6
Mafee7

Posted on June 27, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related

This code Crashes chrome tab #1
javascript This code Crashes chrome tab #1

June 27, 2021