-
-
Save kuu/778932bdb48ca2bb7988 to your computer and use it in GitHub Desktop.
Following code causes iOS8 GM seed's Safari to crash.
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
<!DOCTYPE html> | |
<script> | |
function tick() { | |
var tArray = new Array(0xFFFFF); | |
for (var i = 0, il = tArray.length; i < il; i++) { | |
tArray[i] = 0; | |
} | |
tArray.length = 0; | |
delete tArray; | |
setTimeout(tick, 30); | |
} | |
tick(); | |
</script> |
Note that the delete tArray nor the resetting of the tArray is not required to make things crash.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue only occurs with iPhone 5 and 4S, and not occur with iPhone 5S.