summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug520498.js
blob: 55324f6f30dcfd7331afd1ae2dc895b5203eb1aa (plain)
1
2
3
4
5
6
7
8
9
var Q = 0;
try {
   (function f(i) { Q = i; if (i == 100000) return; f(i+1); })(1)
} catch (e) {
}

if (Q == 100000)
   assertEq(Q, "fail");