summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/arrow-functions/arguments-2.js
blob: d6ad23ce8cfd0b11c2edff54daec20de7c62a02d (plain)
1
2
3
4
5
6
7
8
9
// 'arguments' is lexically scoped in arrow functions

var args, g;
function f() {
    g = () => arguments;
    args = arguments;
}
f();
assertEq(g(), args);