blob: 3b792412b3c912a0fceabd96745c00a1fb4784a2 [file] [log] [blame]
var constant = {};
function foo(o) {
var v = o.f;
return v === constant;
}
noInline(foo);
for (var i = 0; i < 1000000; ++i) {
var result = foo({f:null});
if (result !== false)
throw "Error: bogus result in loop";
}
var result = foo({f:constant});
if (result !== true)
throw "Error: bogus result at end";