packages/babel-helper-create-class-features-plugin/test/fixtures/field-reinitialization/private-method/output.js
raw| 1 | class Base { |
| 2 | constructor(obj) { |
| 3 | return obj; |
| 4 | } |
| 5 | } |
| 6 | var _foo = /*#__PURE__*/new WeakSet(); |
| 7 | class Derived extends Base { |
| 8 | constructor(...args) { |
| 9 | super(...args); |
| 10 | babelHelpers.classPrivateMethodInitSpec(this, _foo); |
| 11 | } |
| 12 | static get(obj) { |
| 13 | return babelHelpers.classPrivateMethodGet(obj, _foo, _foo2).call(obj); |
| 14 | } |
| 15 | } |
| 16 | function _foo2() { |
| 17 | return 'bar'; |
| 18 | } |