mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* 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]>
23 lines
398 B
JavaScript
23 lines
398 B
JavaScript
var _B;
|
|
class A {
|
|
static get a() {
|
|
return 1;
|
|
}
|
|
}
|
|
class B extends A {
|
|
static get b() {
|
|
return 2;
|
|
}
|
|
static extract() {
|
|
return [babelHelpers.assertClassBrand(B, this, _getA), babelHelpers.assertClassBrand(B, this, _getB)];
|
|
}
|
|
}
|
|
_B = B;
|
|
function _getA() {
|
|
return babelHelpers.superPropGet(_B, "a", this);
|
|
}
|
|
function _getB() {
|
|
return this.b;
|
|
}
|
|
var [getA, getB] = B.extract();
|