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