blob: 2d048a88b7967e192bd111aef9cbb98065fbfbef [file] [log] [blame] [edit]
function opt(f, length = 5) {
(function () {
f;
length;
})();
return f();
}
function main() {
opt(function () {});
for (let i = 0; i < testLoopCount; i++) {
let threw = false;
try {
const iterator = opt(Array.prototype.keys);
print([...iterator]);
} catch {
threw = true;
}
if (!threw)
throw new Error();
}
}
main();