Debian Codegraph @

packages/babel-plugin-transform-parameters/test/fixtures/parameters/default-rest/exec.js

raw
1 const a = 1;
2 function rest(b = a, ...a) {
3 expect(b).toBe(1);
4 }
5 rest(undefined, 2)
6
7 function rest2(b = a, ...a) {
8 expect(a[0]).toBe(2);
9 }
10 rest2(undefined, 2)
11
12 function rest3(b = a, ...a) {
13 expect(a).toHaveLength(1);
14 }
15 rest3(undefined, 2)