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
23 lines
452 B
JavaScript
23 lines
452 B
JavaScript
var _class;
|
|
class A {
|
|
static get a() {
|
|
return 1;
|
|
}
|
|
}
|
|
class B extends A {
|
|
static get b() {
|
|
return 2;
|
|
}
|
|
static extract() {
|
|
return [babelHelpers.classStaticPrivateMethodGet(this, B, _getA), babelHelpers.classStaticPrivateMethodGet(this, B, _getB)];
|
|
}
|
|
}
|
|
_class = B;
|
|
function _getA() {
|
|
return babelHelpers.get(babelHelpers.getPrototypeOf(_class), "a", this);
|
|
}
|
|
function _getB() {
|
|
return this.b;
|
|
}
|
|
var [getA, getB] = B.extract();
|