- `mutableTemplateObject` and `ignoreToPrimitiveHint` (#12408) - `setClassMethods` (#12407) - `setComputedProperties` (#12490) - `ignoreFunctionLength` (#12491) - `noDocumentAll` (#12481) - `iterableIsArray` and `arrayLikeIsIterable` (#12489) - `pureGetters` (#12504) - `skipForOfIteratorClosing` (#12496) - `objectRestNoSymbols`, `setSpreadProperties` and `pureGetters` (#12505) - `noNewArrows` (#12613, #12793) - `setPublicClassFields` and `privateFieldsAsProperties` (#12497) - `constantReexports` and `enumerableModuleMeta` (#12618) - `constantSuper`, `superIsCallableConstructor` and `noClassCalls` (#12726) Co-authored-by: Justin Ridgewell <justin@ridgewell.name> Co-authored-by: Huáng Jùnliàng <JLHwung@users.noreply.github.com>
38 lines
698 B
JavaScript
38 lines
698 B
JavaScript
class A {
|
|
static get a() {
|
|
return 1;
|
|
}
|
|
|
|
}
|
|
|
|
var _getA = babelHelpers.classPrivateFieldLooseKey("getA");
|
|
|
|
var _getB = babelHelpers.classPrivateFieldLooseKey("getB");
|
|
|
|
class B extends A {
|
|
static get b() {
|
|
return 2;
|
|
}
|
|
|
|
static extract() {
|
|
return [babelHelpers.classPrivateFieldLooseBase(this, _getA)[_getA], babelHelpers.classPrivateFieldLooseBase(this, _getB)[_getB]];
|
|
}
|
|
|
|
}
|
|
|
|
var _getB2 = function _getB2() {
|
|
return this.b;
|
|
};
|
|
|
|
var _getA2 = function _getA2() {
|
|
return babelHelpers.get(babelHelpers.getPrototypeOf(B), "a", this);
|
|
};
|
|
|
|
Object.defineProperty(B, _getA, {
|
|
value: _getA2
|
|
});
|
|
Object.defineProperty(B, _getB, {
|
|
value: _getB2
|
|
});
|
|
const [getA, getB] = B.extract();
|