mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +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]>
22 lines
651 B
JavaScript
22 lines
651 B
JavaScript
var _B;
|
|
var A = /*#__PURE__*/babelHelpers.createClass(function A() {
|
|
"use strict";
|
|
|
|
babelHelpers.classCallCheck(this, A);
|
|
});
|
|
babelHelpers.defineProperty(A, "prop", 1);
|
|
var B = /*#__PURE__*/function (_A2) {
|
|
"use strict";
|
|
|
|
function B() {
|
|
babelHelpers.classCallCheck(this, B);
|
|
return babelHelpers.callSuper(this, B, arguments);
|
|
}
|
|
babelHelpers.inherits(B, _A2);
|
|
return babelHelpers.createClass(B);
|
|
}(A);
|
|
_B = B;
|
|
babelHelpers.defineProperty(B, "prop", 2);
|
|
babelHelpers.defineProperty(B, "propA", babelHelpers.superPropGet(_B, "prop", _B));
|
|
babelHelpers.defineProperty(B, "getPropA", () => babelHelpers.superPropGet(_B, "prop", _B));
|