blob: cb194fd7ca5ac59ad6961942f8627b60a5aa3018 [file] [log] [blame]
for (let i = 0; i <= 1e5; ++i) {
let error;
let returnCalled;
let iterable = {
next() {
throw error = new Error();
},
[Symbol.iterator]() { return this; },
return() {
returnCalled = true;
}
};
noInline(iterable.next);
try {
for (_ of iterable)
throw new Erorr();
} catch (e) {
if (e !== error)
throw e;
}
if (returnCalled)
throw new Error();
}