packages/babel-plugin-proposal-private-methods/test/fixtures/accessors-loose/reassignment/output.js
raw| 1 | var counter = 0; |
| 2 | var _privateFieldValue = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateFieldValue"); |
| 3 | class Foo { |
| 4 | constructor() { |
| 5 | Object.defineProperty(this, _privateFieldValue, { |
| 6 | get: _get_privateFieldValue, |
| 7 | set: void 0 |
| 8 | }); |
| 9 | babelHelpers.classPrivateFieldLooseBase(this, _privateFieldValue)[_privateFieldValue] = ++counter; |
| 10 | } |
| 11 | } |
| 12 | function _get_privateFieldValue() { |
| 13 | return 42; |
| 14 | } |