]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | function foo() { |
2 | return arguments; | |
3 | } | |
4 | ||
5 | function fuzz(args) { | |
6 | return foo.apply(void 0, args); | |
7 | } | |
8 | ||
9 | function baz(a, b, c) { | |
10 | return a + b + c; | |
11 | } | |
12 | ||
13 | function bar(args1) { | |
14 | var args2 = fuzz(args1); | |
15 | return baz.apply(void 0, args2); | |
16 | } | |
17 | ||
18 | noInline(bar); | |
19 | ||
20 | for (var i = 0; i < 20000; ++i) { | |
21 | var result = bar([1, 2, 3]); | |
22 | if (result != 6) | |
23 | throw "Error: bad result: " + result; | |
24 | } | |
25 |