Files
babel/packages/babel-plugin-proposal-private-methods/test/fixtures/private-static-method/super/output.js

22 lines
421 B
JavaScript

class Base {
static basePublicStaticMethod() {
return 'good';
}
}
class Sub extends Base {
static basePublicStaticMethod() {
return 'bad';
}
static check() {
babelHelpers.classStaticPrivateMethodGet(Sub, Sub, _subStaticPrivateMethod).call(Sub);
}
}
function _subStaticPrivateMethod() {
return babelHelpers.get(babelHelpers.getPrototypeOf(Sub), "basePublicStaticMethod", this).call(this);
}