* Fix super method call in private instance method calling overridden method * Change return value in test fixtures * Update tests to verify that overridden method is not called
22 lines
452 B
JavaScript
22 lines
452 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);
|
|
}
|
|
|
|
}
|
|
|
|
var _subStaticPrivateMethod = function _subStaticPrivateMethod() {
|
|
return babelHelpers.get(babelHelpers.getPrototypeOf(Sub), "basePublicStaticMethod", this).call(this);
|
|
};
|