PageRenderTime 19ms CodeModel.GetById 16ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/basic/bug522136.js

http://github.com/zpao/v8monkey
JavaScript | 11 lines | 8 code | 2 blank | 1 comment | 3 complexity | fa94cd894bb2d9efcdbf9b908bed0fe9 MD5 | raw file
 1var Q = 0;
 2var thrown = false;
 3try {
 4   (function f(i) { Q = i; if (i == 200000) return; f(i+1); })(1)
 5} catch (e) {
 6    thrown = true;
 7}
 8
 9// Exact behavior of recursion check depends on which JIT we use.
10assertEq(thrown && Q > 10000, true);
11