mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* clean * improve * tests * fix lint * old helpers * add fail test * fix * Update packages/babel-helpers/src/helpers/superPropGet.ts Co-authored-by: Nicolò Ribaudo <[email protected]> * review * fix lint * minVersion --------- Co-authored-by: Nicolò Ribaudo <[email protected]>
24 lines
522 B
JavaScript
24 lines
522 B
JavaScript
var _Sub;
|
|
class Base {
|
|
superMethod() {
|
|
return 'good';
|
|
}
|
|
}
|
|
var _Sub_brand = /*#__PURE__*/new WeakSet();
|
|
class Sub extends Base {
|
|
constructor(...args) {
|
|
super(...args);
|
|
babelHelpers.classPrivateMethodInitSpec(this, _Sub_brand);
|
|
}
|
|
superMethod() {
|
|
return 'bad';
|
|
}
|
|
publicMethod() {
|
|
return babelHelpers.assertClassBrand(_Sub_brand, this, _privateMethod).call(this);
|
|
}
|
|
}
|
|
_Sub = Sub;
|
|
function _privateMethod() {
|
|
return babelHelpers.superPropGet(_Sub.prototype, "superMethod", this, 2)([]);
|
|
}
|