Last active
August 29, 2015 13:57
-
-
Save CezaryDanielNowak/9498976 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var breakMyBrowser, i = 0, bigArray = []; | |
(breakMyBrowser = function() { | |
setTimeout(function() { | |
bigArray = bigArray.concat((new Array(100)).join('X').split('')); | |
i += 100; | |
if(4294967200 === i && confirm('almost 4294967295 reach. continue?')) { | |
return; | |
} | |
breakMyBrowser(); | |
}, 0); | |
})(); | |
/* | |
my tests bigArray.length | |
Firefox: stopped at 885159 | |
Chrome: stopped at ... it shuot down.. interesting | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment