blob: 554ab09c730840fef1b7d0e58da82968142c5d8f [file] [log] [blame]
function foo(o) {
return bar(o);
}
function fuzz(o) {
return bar(o);
}
function bar(o) {
return o.f;
}
noInline(foo);
noInline(fuzz);
for (var i = 0; i < 100000; ++i) {
var result = foo({f:42});
if (result != 42)
throw "Error: bad result: " + result;
var result = fuzz({g:23, f:24});
if (result != 24)
throw "Error: bad result: " + result;
}