blob: 22c6475dc4999d065de6f7f008698419149752aa [file] [log] [blame]
This tests global code recursion when the JS stack is full.
<div id="result">PASS: Entering global code with a full JS stack did not crash, and did not allow continued recursion.</id>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
var depth = 0;
function f(a,b,c,d,e) {
var a, b, c, d, e;
try {
depth++;
f(a, b, c, d, e);
} catch(e) {
document.write('<script> try { f(); result.innerText = "FAILED: Attempting to call f() should throw due to stack exhaustion"; } catch(e) { } </'+'script> ');
}
}
f();
</script>