blob: d654ea776ff464d6ccf4fc49d14ea97a117d72e0 [file] [log] [blame]
function foo(o) {
return o.f;
}
noInline(foo);
var p = {f:42};
var o = Object.create(p);
for (var i = 0; i < 100; ++i) {
p["i" + i] = i;
for (var j = 0; j < 100; ++j) {
var result = foo(o);
if (result != 42)
throw "Error: bad result: " + result;
}
}
p.f = 43;
var result = foo(o);
if (result != 43)
throw "Error: bad result at end: " + result;