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

28 lines
682 B
JavaScript

let A = /*#__PURE__*/function () {
"use strict";
function A() {
babelHelpers.classCallCheck(this, A);
}
return babelHelpers.createClass(A, [{
key: "foo",
value: function foo() {
return "bar";
}
}]);
}();
var _foo = /*#__PURE__*/new WeakMap();
let B = /*#__PURE__*/function (_A) {
"use strict";
function B(...args) {
var _this;
babelHelpers.classCallCheck(this, B);
_this = babelHelpers.callSuper(this, B, [...args]);
babelHelpers.classPrivateFieldInitSpec(_this, _foo, babelHelpers.superPropGet((_this, B), "foo", _this, 3)([]));
return _this;
}
babelHelpers.inherits(B, _A);
return babelHelpers.createClass(B);
}(A);