Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created December 17, 2010 23:46
Show Gist options
  • Save sdesai/745920 to your computer and use it in GitHub Desktop.
Save sdesai/745920 to your computer and use it in GitHub Desktop.
IE9 setTimeout crash repro
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<body>
<script type="text/javascript">
setTimeout(function() {
var ran = false;
function startTest() {
if (!ran) {
ran = true;
try {
setTimeout(function() {
startTest();
}, 0);
} catch(e) {
setTimeout(function() {
var x = e;
}, 0);
}
}
}
startTest();
},0);
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment