]> git.saurik.com Git - apple/javascriptcore.git/blame_incremental - tests/stress/disable-function-dot-arguments.js
JavaScriptCore-7601.1.46.3.tar.gz
[apple/javascriptcore.git] / tests / stress / disable-function-dot-arguments.js
... / ...
CommitLineData
1//@ run("function-dot-arguments", "--enableFunctionDotArguments=false")
2
3function 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
13function bar() {
14 foo();
15}
16
17bar();
18bar(1);
19bar(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
20