summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/generators/bug1098947.js
blob: c84ccd8d7280c0d0515c92177b9485ac1783eba0 (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.close();