summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1342483-2.js
blob: 1d5b808b042b529c66a1ef16e5e79ab246e90f6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// |jit-test| error: () => g
function f() {
    // Block Scope
    {
        // Lexical capture creates environment
        function g() {}
        var h = [() => g];

        // OSR Re-Entry Point
        for (;;) { break; }

        // Type Invalidation + Throw
        throw h[0];
    }
}

f();