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

20 lines
571 B
JavaScript

var Test = /*#__PURE__*/function (_Foo) {
"use strict";
function Test() {
var _this;
babelHelpers.classCallCheck(this, Test);
_this = babelHelpers.callSuper(this, Test);
babelHelpers.superPropGet((_this, Test), "test", _this, 1).whatever();
babelHelpers.superPropGet((_this, Test), "test", _this, 3)([]);
return _this;
}
babelHelpers.inherits(Test, _Foo);
return babelHelpers.createClass(Test, null, [{
key: "test",
value: function test() {
return babelHelpers.superPropGet(Test, "wow", this, 2)([]);
}
}]);
}(Foo);