31 lines
561 B
JavaScript
31 lines
561 B
JavaScript
class Base {
|
|
superMethod() {
|
|
return 'good';
|
|
}
|
|
|
|
}
|
|
|
|
var _privateMethod = babelHelpers.classPrivateFieldLooseKey("privateMethod");
|
|
|
|
class Sub extends Base {
|
|
constructor(...args) {
|
|
super(...args);
|
|
Object.defineProperty(this, _privateMethod, {
|
|
value: _privateMethod2
|
|
});
|
|
}
|
|
|
|
superMethod() {
|
|
return 'bad';
|
|
}
|
|
|
|
publicMethod() {
|
|
return babelHelpers.classPrivateFieldLooseBase(this, _privateMethod)[_privateMethod]();
|
|
}
|
|
|
|
}
|
|
|
|
var _privateMethod2 = function _privateMethod2() {
|
|
return Base.prototype.superMethod.call(this);
|
|
};
|