summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arguments/bug844048.js
blob: b7e56a7583e758402891913d51ccb75e760be2cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

function foo() {
  eval("\
    for (var arguments in arguments)\
      assertEq(f(i, 1), i+1);\
  ");
}
foo();

function bar() {
  eval("\
    var arguments;\
    for each(e in [arguments, arguments]) {}\
  ");
}
bar();

(function(){assertEq(typeof eval("var arguments; arguments"), "object")})();
(function(... rest){assertEq(typeof eval("var arguments; arguments"), "object")})();