]>
Commit | Line | Data |
---|---|---|
ed1e77d3 A |
1 | //@ run("function-dot-arguments", "--enableFunctionDotArguments=false") |
2 | ||
3 | function foo() { | |
4 | var a = bar.arguments; | |
5 | if (a.length != 0) | |
6 | throw "Error: arguments have non-zero length"; | |
7 | for (var i = 0; i < 100; ++i) { | |
8 | if (a[i] !== void 0) | |
9 | throw "Error: argument " + i + " has non-undefined value"; | |
10 | } | |
11 | } | |
12 | ||
13 | function bar() { | |
14 | foo(); | |
15 | } | |
16 | ||
17 | bar(); | |
18 | bar(1); | |
19 | bar(1, 2, 3, 4, 5, 6, 7, 8, 9, 10); | |
20 |