Files
Huáng JùnliàngandGitHub 980dcb8b01 Memoize class binding when compiling private methods and static elements (#15701)
* add test cases

* fix: memoise class binding when lowering static elements and private methods

* update test fixtures

* update test fixtures
2023-07-19 17:59:21 -04:00

28 lines
1.1 KiB
JavaScript

var Test = /*#__PURE__*/babelHelpers.createClass(function Test() {
"use strict";
var _class;
babelHelpers.classCallCheck(this, Test);
var Other = /*#__PURE__*/function (_Test) {
babelHelpers.inherits(Other, _Test);
var _super = babelHelpers.createSuper(Other);
function Other() {
var _thisSuper, _this;
babelHelpers.classCallCheck(this, Other);
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
_this = _super.call.apply(_super, [this].concat(args));
babelHelpers.defineProperty(babelHelpers.assertThisInitialized(_this), "a", function () {
return babelHelpers.get((_thisSuper = babelHelpers.assertThisInitialized(_this), babelHelpers.getPrototypeOf(Other.prototype)), "test", _thisSuper);
});
return _this;
}
return babelHelpers.createClass(Other);
}(Test);
_class = Other;
babelHelpers.defineProperty(Other, "a", function () {
return babelHelpers.get(babelHelpers.getPrototypeOf(_class), "test", _class);
});
});