summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1098947.js
blob: 2a1d5af774e8dcfa53484fddb1df7d1bd6c12017 (plain)
1
2
3
4
5
6
7
8
9
10
11
function* f() {
    try {
        let foo = 3;
        for (var i=0; i<50; i++)
            yield i + foo;
    } catch(e) {}
}
var it = f();
for (var i=0; i<40; i++)
    it.next();
it.return();