blob: 04f318f8e4f9d414e2a1d6e8ac338fc8de2784e6 [file] [log] [blame]
//@ runDefault("--forceEagerCompilation=true")
// This test should not crash.
var count = 0;
function blurType(value)
{
if ((count++) & 0x1)
return {};
return value;
}
noInline(blurType);
[0, 1].forEach(()=>{
[{}, 1, 2].forEach(x => {
['xy'].indexOf(blurType('xy_'.substring(0, 2)));
});
});