summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testBug520503-2.js
blob: 2f6699d405bec539f1b7ae4f8b5cef50fa668807 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
for each(let a in [new Boolean(false)]) {}
for (var b = 0; b < 13; ++b) {
    if (b % 3 == 1) {
        (function f(c) {
            if (c <= 1) {
                return 1;
            }
            return f(c - 1) + f(c - 2);
        })(3)
    } else {
        (function g(d, e) {;
            return d.length == e ? 0 : d[e] + g(d, e + 1);
        })([false, new Boolean(true), false], 0)
    }
}

/* Should not have crashed. */