blob: 93d6cb1aafb8fb3659799db7e3b9cedec163345b [file] [log] [blame]
function foo(p) {
var result = 42;
var o = arguments;
if (p)
result = isInt32(o);
return result;
}
noInline(foo);
var result = foo(true);
if (result !== false)
throw "Error: bad result at beginning: " + result;
for (var i = 0; i < 10000; ++i) {
var result = foo(false);
if (result !== 42)
throw "Error: bad result: " + result;
}
var result = foo(true);
if (result !== false)
throw "Error: bad result at end: " + result;