summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug522136.js
blob: 751396dbd546a68f21caf2cdde87b170322e3942 (plain)
1
2
3
4
5
6
7
8
9
10
var Q = 0;
var thrown = false;
try {
   (function f(i) { Q = i; if (i == 200000) return; f(i+1); })(1)
} catch (e) {
    thrown = true;
}

// Exact behavior of recursion check depends on which JIT we use.
assertEq(thrown && Q > 3500, true);