blob: 221784e4e3fddb95b770c4547b5a565da2859834 [file] [log] [blame]
function test() {
var result = "";
var iterable = (function*(){ yield 1; yield 2; yield 3; }());
for (var item of iterable) {
result += item;
}
return result === "123";
}
if (!test())
throw new Error("Test failed");