blob: c67493356c3dda20ce79a5546a37ff33f24a5321 [file] [log] [blame]
// This should not crash.
function foo() {
for (const v of [X(...(v>>=2))]) {}
}
noInline(foo);
function bar() {
for (const v of [new X(...(v>>=2))]) {}
}
noInline(bar);
for (let i = 0; i < 10000; ++i) {
try { foo(); } catch { }
try { bar(); } catch { }
}