1function foo(o) {
2    return String(o);
3}
4
5noInline(foo);
6
7for (var i = 0; i < 100000; ++i) {
8    var result = foo(new String("hello"));
9    if (typeof result != "string") {
10        describe(result);
11        throw "Error: result isn't a string";
12    }
13    if (result != "hello")
14        throw "Error: bad result: " + result;
15}
16