summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1716931.js
blob: ae430f53ff1859b88b44bf72fb584fb098469f17 (plain)
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;
    }
}