blob: 685ab100209ffc0a7d854909d99ae04b6b8baf80 [file] [log] [blame]
function foo(o) {
return o.f;
}
noInline(foo);
var o = Object.create(null);
for (var i = 0; i < 10000; ++i) {
var result = foo(o);
if (result !== void 0)
throw "Error: bad result in loop: " + result;
}
o.f = 42
var result = foo(o);
if (result !== 42)
throw "Error: bad result at end: " + result;