mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* add test cases * fix: memoise class binding when lowering static elements and private methods * update test fixtures * update test fixtures
19 lines
445 B
JavaScript
19 lines
445 B
JavaScript
var _class;
|
|
class Base {
|
|
static basePublicStaticMethod() {
|
|
return 'good';
|
|
}
|
|
}
|
|
class Sub extends Base {
|
|
static basePublicStaticMethod() {
|
|
return 'bad';
|
|
}
|
|
static check() {
|
|
babelHelpers.classStaticPrivateMethodGet(Sub, Sub, _subStaticPrivateMethod).call(Sub);
|
|
}
|
|
}
|
|
_class = Sub;
|
|
function _subStaticPrivateMethod() {
|
|
return babelHelpers.get(babelHelpers.getPrototypeOf(_class), "basePublicStaticMethod", this).call(this);
|
|
}
|