PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

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

http://github.com/zpao/v8monkey
JavaScript | 21 lines | 15 code | 5 blank | 1 comment | 3 complexity | dc84c41c2d294f7a6f153f5fa0007527 MD5 | raw file
 1
 2function Bext(k) {
 3    if (k > 0) {
 4        let i = k + 1;
 5        if (k == 10) {
 6            function x () { i = 2; }
 7	}
 8        Bext(i - 2);
 9        Bext(i - 2);
10    }
11    return 0;
12}
13
14function f() {
15    Bext(12);
16}
17
18f();
19
20/* Don't assert. */
21