mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
* add test cases * fix: memoise class binding when lowering static elements and private methods * update test fixtures * update test fixtures
28 lines
1.1 KiB
JavaScript
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);
|
|
});
|
|
});
|