summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1151326.js
blob: 17120fbf95243b60b5ddd5637ec9720f40d666aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// |jit-test| error: closing generator
var finally3;
function gen() {
    try {
        try {
            yield 1;
        } finally {
            finally3();
        }
    } catch (e) {
        yield finally3 === parseInt;
    }
}
iter = gen();
iter.next();
iter.close();