blob: 57096ee03e152573aedc64d0439fb2bf22c6415b [file] [log] [blame]
for (let i = 0; i < 1e5; ++i) {
let returnCalled = false;
let iterable = {
done: 0,
next() {
return {
done: this.done++,
get value() { if (isFinalTier()) ForceOSR(); }
}
},
[Symbol.iterator]() { return this; },
return() { returnCalled = true; },
};
try {
for (_ of iterable) { }
} catch {
}
if (returnCalled)
throw new Error();
}