]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | function foo(x) { |
2 | var tmp = x + 1; | |
3 | return tmp + arguments[0]; | |
4 | } | |
5 | ||
6 | noInline(foo); | |
7 | ||
8 | for (var i = 0; i < 10000; ++i) { | |
9 | var result = foo(i); | |
10 | if (result != i + i + 1) | |
11 | throw "Error: bad result: " + result; | |
12 | } | |
13 | ||
14 | var result = foo(4.5); | |
15 | if (result != 4.5 + 4.5 + 1) | |
16 | throw "Error: bad result at end: " + result; |