| function foo(x) { | |
| return "hello" + x + "!!"; | |
| } | |
| noInline(foo); | |
| for (var i = 0; i < testLoopCount; ++i) { | |
| var result = foo(" world"); | |
| if (typeof result != "string") { | |
| describe(result); | |
| throw "Error: bad result type: " + result; | |
| } | |
| if (result != "hello world!!") | |
| throw "Error: bad result: " + result; | |
| } | |