blob: 7f5da4a88757187064b206203f78a7fc125bdf42 [file] [log] [blame]
function test() {
var iterator = (function * generator() {
yield * [,,];
}());
var item = iterator.next();
var passed = item.value === undefined && item.done === false;
item = iterator.next();
passed &= item.value === undefined && item.done === false;
item = iterator.next();
passed &= item.value === undefined && item.done === true;
return passed;
}
if (!test())
throw new Error("Test failed");