mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
24 lines
544 B
JavaScript
24 lines
544 B
JavaScript
class Base {
|
|
superMethod() {
|
|
return 'good';
|
|
}
|
|
}
|
|
var _privateMethod = /*#__PURE__*/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]();
|
|
}
|
|
}
|
|
function _privateMethod2() {
|
|
return Base.prototype.superMethod.call(this);
|
|
}
|