packages/babel-plugin-proposal-private-methods/test/fixtures/private-method/assignment/output.js
raw| 1 | var _privateMethod = /*#__PURE__*/new WeakSet(); |
| 2 | class Foo { |
| 3 | constructor() { |
| 4 | babelHelpers.classPrivateMethodInitSpec(this, _privateMethod); |
| 5 | this.publicField = babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2).call(this); |
| 6 | } |
| 7 | } |
| 8 | function _privateMethod2() { |
| 9 | return 42; |
| 10 | } |