blob: 431fd76f2213f8134e5efce74e426e2a42360b0a [file] [log] [blame]
function * generator() {
yield 1;
yield 2;
}
function fn() {
var iterator = generator();
iterator.next();
iterator.next();
return iterator.next().done;
}
assertEqual(fn(), true);
test(fn);