summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/for-of/bug-1341339.js
blob: cd5f5ff90c8c85b913364c36d3d974231b64b0e7 (plain)
1
2
3
4
5
6
7
8
9
let m = parseModule(`
function* values() {}
var iterator = values();
for (var i=0; i < 10000; ++i) {
    for (var x of iterator) {}
}
`);
moduleLink(m);
moduleEvaluate(m);