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]>
23 lines
583 B
JavaScript
23 lines
583 B
JavaScript
var _Sub;
|
|
class Base {
|
|
static basePublicStaticMethod() {
|
|
return 'good';
|
|
}
|
|
}
|
|
var _subStaticPrivateMethod = Symbol("subStaticPrivateMethod");
|
|
class Sub extends Base {
|
|
static basePublicStaticMethod() {
|
|
return 'bad';
|
|
}
|
|
static check() {
|
|
babelHelpers.classPrivateFieldLooseBase(Sub, _subStaticPrivateMethod)[_subStaticPrivateMethod]();
|
|
}
|
|
}
|
|
_Sub = Sub;
|
|
function _subStaticPrivateMethod2() {
|
|
return babelHelpers.superPropGet(_Sub, "basePublicStaticMethod", this, 2)([]);
|
|
}
|
|
Object.defineProperty(Sub, _subStaticPrivateMethod, {
|
|
value: _subStaticPrivateMethod2
|
|
});
|