blob: 8ced6c083a4c8ca3859e7f7aff701ca8ce4dd26a [file] [log] [blame]
function foo(o) {
return String(o);
}
noInline(foo);
for (var i = 0; i < 100000; ++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;
}