blob: 52d6da98d7c7a852d38b42295dae3f79083c1a9b [file] [log] [blame]
function shouldBe(actual, expected)
{
if (actual !== expected)
throw new Error('bad value: ' + actual);
}
var k = -1;
var o1 = [20];
o1[k] = 42;
function test1(o)
{
return k in o;
}
noInline(test1);
for (var i = 0; i < 1e6; ++i)
shouldBe(test1(o1), true);