diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug522136.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug522136.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug522136.js b/js/src/jit-test/tests/basic/bug522136.js new file mode 100644 index 0000000000..751396dbd5 --- /dev/null +++ b/js/src/jit-test/tests/basic/bug522136.js @@ -0,0 +1,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); |