blob: 8f4af0b3cf26d4f25f924c4a99fee8bc7168666d [file] [log] [blame]
function foo(o) {
if (o.f)
return "yes";
else
return "no";
}
noInline(foo);
function test(value, expected) {
var result = foo({f:value});
if (result != expected)
throw "Error: bad result for " + value + ": " + result;
}
for (var i = 0; i < 10000; ++i) {
test(1, "yes");
test(0, "no");
test(true, "yes");
test(false, "no");
}
test("yes", "yes");