| 1 |
class Base { |
| 2 |
superMethod() { |
| 3 |
return 'good'; |
| 4 |
} |
| 5 |
} |
| 6 |
var _privateMethod = /*#__PURE__*/babelHelpers.classPrivateFieldLooseKey("privateMethod"); |
| 7 |
class Sub extends Base { |
| 8 |
constructor(...args) { |
| 9 |
super(...args); |
| 10 |
Object.defineProperty(this, _privateMethod, { |
| 11 |
value: _privateMethod2 |
| 12 |
}); |
| 13 |
} |
| 14 |
superMethod() { |
| 15 |
return 'bad'; |
| 16 |
} |
| 17 |
publicMethod() { |
| 18 |
return babelHelpers.classPrivateFieldLooseBase(this, _privateMethod)[_privateMethod](); |
| 19 |
} |
| 20 |
} |
| 21 |
function _privateMethod2() { |
| 22 |
return babelHelpers.get(babelHelpers.getPrototypeOf(Sub.prototype), "superMethod", this).call(this); |
| 23 |
} |