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