summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug547791.js
blob: 2d4482eb5156bc71b0ace83d6331c8d3f2de4196 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

function Bext(k) {
    if (k > 0) {
        let i = k + 1;
        if (k == 10) {
            function x () { i = 2; }
	}
        Bext(i - 2);
        Bext(i - 2);
    }
    return 0;
}

function f() {
    Bext(12);
}

f();

/* Don't assert. */