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