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