mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* 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]>
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
"use strict";
|
|
|
|
var Hello = /*#__PURE__*/function () {
|
|
function Hello() {
|
|
babelHelpers.classCallCheck(this, Hello);
|
|
}
|
|
return babelHelpers.createClass(Hello, [{
|
|
key: "toString",
|
|
value: function toString() {
|
|
return 'hello';
|
|
}
|
|
}]);
|
|
}();
|
|
var Outer = /*#__PURE__*/function (_Hello) {
|
|
function Outer() {
|
|
var _this;
|
|
babelHelpers.classCallCheck(this, Outer);
|
|
_this = babelHelpers.callSuper(this, Outer);
|
|
var Inner = /*#__PURE__*/function (_babelHelpers$superPr) {
|
|
function Inner() {
|
|
babelHelpers.classCallCheck(this, Inner);
|
|
}
|
|
return babelHelpers.createClass(Inner, [{
|
|
key: _babelHelpers$superPr,
|
|
value: function value() {
|
|
return 'hello';
|
|
}
|
|
}]);
|
|
}(babelHelpers.superPropGet((_this, Outer), "toString", _this, 3)([]));
|
|
return babelHelpers.possibleConstructorReturn(_this, new Inner());
|
|
}
|
|
babelHelpers.inherits(Outer, _Hello);
|
|
return babelHelpers.createClass(Outer);
|
|
}(Hello);
|
|
expect(new Outer().hello()).toBe('hello');
|