| 1 |
class Base { |
| 2 |
superMethod() { |
| 3 |
return 'good'; |
| 4 |
} |
| 5 |
} |
| 6 |
var _privateMethod = /*#__PURE__*/new WeakSet(); |
| 7 |
class Sub extends Base { |
| 8 |
constructor(...args) { |
| 9 |
super(...args); |
| 10 |
babelHelpers.classPrivateMethodInitSpec(this, _privateMethod); |
| 11 |
} |
| 12 |
superMethod() { |
| 13 |
return 'bad'; |
| 14 |
} |
| 15 |
publicMethod() { |
| 16 |
return babelHelpers.classPrivateMethodGet(this, _privateMethod, _privateMethod2).call(this); |
| 17 |
} |
| 18 |
} |
| 19 |
function _privateMethod2() { |
| 20 |
return babelHelpers.get(babelHelpers.getPrototypeOf(Sub.prototype), "superMethod", this).call(this); |
| 21 |
} |