js/src/jit-test/tests/arrow-functions/arguments-3.js

changeset 0
6474c204b198
equal deleted inserted replaced
-1:000000000000 0:a46fd7785fcb
1 // the 'arguments' binding in an arrow function is visible in direct eval code
2
3 function f() {
4 return s => eval(s);
5 }
6
7 var g = f();
8 var args = g("arguments");
9 assertEq(typeof args, "object");
10 assertEq(args !== g("arguments"), true);
11 assertEq(args.length, 1);
12 assertEq(args[0], "arguments");
13

mercurial