packages/babel-plugin-proposal-destructuring-private/test/fixtures/variable-declaration/object-rest/output.js
raw| 1 | let result; |
| 2 | class C { |
| 3 | static #x = "#x"; |
| 4 | static #y = "#y"; |
| 5 | static a = "a"; |
| 6 | static b = "b"; |
| 7 | static c = "c"; |
| 8 | static { |
| 9 | var _m, _m2; |
| 10 | var { |
| 11 | [_m = C.a]: a |
| 12 | } = C, |
| 13 | x = C.#x, |
| 14 | { |
| 15 | [_m2 = C.b]: b |
| 16 | } = C, |
| 17 | y = C.#y, |
| 18 | z = babelHelpers.objectWithoutProperties(C, [_m, _m2].map(babelHelpers.toPropertyKey)); |
| 19 | result = { |
| 20 | a, |
| 21 | b, |
| 22 | x, |
| 23 | y, |
| 24 | z |
| 25 | }; |
| 26 | } |
| 27 | } |