packages/babel-plugin-proposal-destructuring-private/test/fixtures/function-params--es2015/function-length/exec.js
raw| 1 | class C { |
| 2 | static #x; |
| 3 | static 0(...[...{0: { #x: x }}]) {} |
| 4 | static 1(a, b = 1, { #x: x }, ...c) {} |
| 5 | static 2(a, b, { #x: x } = C) {} |
| 6 | static 3(a, b, { #x: x }, c = 1) {} |
| 7 | } |
| 8 | expect(C[0].length).toBe(0); |
| 9 | expect(C[1].length).toBe(1); |
| 10 | expect(C[2].length).toBe(2); |
| 11 | expect(C[3].length).toBe(3); |