blob: c2365b7da9ab437b39c2da3b80956b1afe9381ae [file] [log] [blame]
Array.prototype[Symbol.iterator]().__proto__.next = 0;
let arr = [1, 2, 3];
try {
for (let ele of arr) {
throw new Error("It should never execute");
}
} catch(e) {
if (!e instanceof TypeError)
throw new Error("It should throw a TypeError, but it threw " + e);
}