packages/babel-plugin-proposal-private-methods/test/fixtures/static-accessors/set-only-getter/output.js
raw| 1 | class Cl { |
| 2 | constructor() { |
| 3 | babelHelpers.classStaticPrivateFieldSpecSet(Cl, Cl, _privateFieldValue, 1); |
| 4 | [babelHelpers.classStaticPrivateFieldDestructureSet(Cl, Cl, _privateFieldValue).value] = [1]; |
| 5 | } |
| 6 | } |
| 7 | function _get_privateFieldValue() { |
| 8 | return babelHelpers.classStaticPrivateFieldSpecGet(this, Cl, _privateField); |
| 9 | } |
| 10 | var _privateFieldValue = { |
| 11 | get: _get_privateFieldValue, |
| 12 | set: void 0 |
| 13 | }; |
| 14 | var _privateField = { |
| 15 | writable: true, |
| 16 | value: 0 |
| 17 | }; |
| 18 | var cl = new Cl(); |