summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug509982.js
blob: 36b9364a1f3ad36966183495fd6ac008250002c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function g() {
    const e = 0;
    return function () {
        switch (7) {
        case e:
        }
    };
}

for (var i = 0; i < 2; i++) {
    let f = g;
    f();
}

// Just test that we don't crash.