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