]>
Commit | Line | Data |
---|---|---|
81345200 A |
1 | function foo(x) { |
2 | return "hello" + x; | |
3 | } | |
4 | ||
5 | noInline(foo); | |
6 | ||
7 | for (var i = 0; i < 100000; ++i) { | |
8 | var result = foo(" world"); | |
9 | if (typeof result != "string") { | |
10 | describe(result); | |
11 | throw "Error: bad result type: " + result; | |
12 | } | |
13 | if (result != "hello world") | |
14 | throw "Error: bad result: " + result; | |
15 | } | |
16 |