blob: 086b74112176c6a3b82047d1217572a87c84f494 [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.testRunner)
testRunner.dumpAsText();
var depth = 0;
function f(a, b, c, d) {
var a, b;
try {
depth++;
f(a, b, c, d);
} catch(e) {
document.write('<script> f(); result.innerText = "FAILED: Attempting to call f() should throw due to stack exhaustion"; </'+'script> ');
}
}
f();
</script>