]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/real-forward-varargs-for-inlined-escaped-arguments.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / real-forward-varargs-for-inlined-escaped-arguments.js
... / ...
CommitLineData
1function foo() {
2 return arguments;
3}
4
5function fuzz(args) {
6 return foo.apply(void 0, args);
7}
8
9function baz(a, b, c) {
10 return a + b + c;
11}
12
13function bar(args1) {
14 var args2 = fuzz(args1);
15 return baz.apply(void 0, args2);
16}
17
18noInline(bar);
19
20for (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