blob: e4435e5aac1b4e433c0193fb3731f778de182252 [file] [log] [blame]
function foo(o) {
return String(o);
}
noInline(foo);
for (var i = 0; i < 100000; ++i) {
var result = foo(new String("hello"));
if (typeof result != "string") {
describe(result);
throw "Error: result isn't a string";
}
if (result != "hello")
throw "Error: bad result: " + result;
}