summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1441012.js
blob: de24e4a83f3e32c4dd5a2f51d357ed6e174eebe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if (getJitCompilerOptions()["ion.warmup.trigger"] > 30)
    setJitCompilerOption("ion.warmup.trigger", 30);
function Iterate(items) {
    for (var value of items) {}
}
var iterable = {
    *[Symbol.iterator]() {
        return "pass";
        (yield* iterable);
    }
};
for (var i = 0; i < 20; ++i) {
    Iterate(iterable);
}