Files
80fc33a72a Improve super.x output (#16374)
* 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]>
2024-07-23 11:37:07 +08:00

27 lines
900 B
JavaScript

var Test = /*#__PURE__*/babelHelpers.createClass(function Test() {
"use strict";
var _Other;
babelHelpers.classCallCheck(this, Test);
var Other = /*#__PURE__*/function (_Test) {
function Other() {
var _this;
babelHelpers.classCallCheck(this, Other);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = babelHelpers.callSuper(this, Other, [].concat(args));
babelHelpers.defineProperty(_this, "a", function () {
return babelHelpers.superPropGet((_this, Other), "test", _this, 1);
});
return _this;
}
babelHelpers.inherits(Other, _Test);
return babelHelpers.createClass(Other);
}(Test);
_Other = Other;
babelHelpers.defineProperty(Other, "a", function () {
return babelHelpers.superPropGet(_Other, "test", _Other);
});
});