1 2 3 4 5 6 7 8 9 10 11 12 13
// |jit-test| --fast-warmup; --no-threads function* foo(x) { yield* x; assertEq(true, false); // Unreachable } for (var i = 0; i < 10; i++) { var count = 0; for (var o of foo(Array(50))) { if (count++ > 40) break; } }