Files
80fc33a72a Improve super.x output (#16374)
* 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]>
2024-07-23 11:37:07 +08:00

19 lines
363 B
JavaScript

var _Sub;
class Base {
static basePublicStaticMethod() {
return 'good';
}
}
class Sub extends Base {
static basePublicStaticMethod() {
return 'bad';
}
static check() {
_subStaticPrivateMethod.call(Sub);
}
}
_Sub = Sub;
function _subStaticPrivateMethod() {
return babelHelpers.superPropGet(_Sub, "basePublicStaticMethod", this, 2)([]);
}