summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1773628.js
blob: 8fe578d71e2ceb546ec38ae567050d99bf861e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| --fast-warmup
function* f() {
    try {
        yield;
    } finally {
        for (let b = 0; b < 10; b++) {}
    }
}
for (var i = 0; i < 50; i++) {
    let c = f();
    c.next();
    c.return();
}