blob: 0396e3339015db3114b7059554e0256f8c1ab8dd [file] [edit]
function foo(o) {
return String(o);
}
noInline(foo);
for (var i = 0; i < testLoopCount; ++i) {
var result = foo(42);
if (typeof result != "string") {
describe(result);
throw "Error: result isn't a string";
}
if (result != "42")
throw "Error: bad result: " + result;
result = foo("world");
if (typeof result != "string") {
describe(result);
throw "Error: result isn't a string";
}
if (result != "world")
throw "Error: bad result: " + result;
}