packages/babel-plugin-proposal-destructuring-private/test/fixtures/assignment--es2015/nested-under-array-pattern/exec.js
raw| 1 | class C { |
| 2 | static #x = "x"; |
| 3 | static #y = []; |
| 4 | static #z; |
| 5 | static self = C; |
| 6 | static #self() { return C } |
| 7 | static { |
| 8 | let x, y, z; |
| 9 | [{ #x: x } = C.self, { #y: [,{ #z: y = C.#self() } = C.self ] },,z = y.#y] = [this,this]; |
| 10 | expect(x).toBe("x"); |
| 11 | expect(y).toBe(C); |
| 12 | expect(z).toStrictEqual([]); |
| 13 | } |
| 14 | } |