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

31 lines
691 B
JavaScript

var Base = /*#__PURE__*/function () {
"use strict";
function Base() {
babelHelpers.classCallCheck(this, Base);
}
return babelHelpers.createClass(Base, [{
key: "method",
value: function method() {}
}]);
}();
var Foo = /*#__PURE__*/function (_Base) {
"use strict";
function Foo() {
var _this;
babelHelpers.classCallCheck(this, Foo);
_this = babelHelpers.callSuper(this, Foo);
if (true) {
var _Foo;
babelHelpers.superPropGet((_this, Foo), "method", _this, 3)([]);
}
return _this;
}
babelHelpers.inherits(Foo, _Base);
return babelHelpers.createClass(Foo, [{
key: "method",
value: function method() {}
}]);
}(Base);