Debian Codegraph @

packages/babel-plugin-transform-arrow-functions/test/fixtures/arrow-functions/implicit-var-arguments/exec.js

raw
1 var arguments = [1, 2, 3];
2 var arr = () => arguments[0];
3
4 expect(arr()).toStrictEqual(1)
5
6 function foo(n) {
7 var f = () => arguments[0] + n; // foo's implicit arguments binding. arguments[0] is n
8 return f();
9 }
10
11 expect(foo(3)).toStrictEqual(6)