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