Yes, the output is uglier. But, this is necessary for me to refactor `replaceSupers` for #7733, which is necessary for both #7555 and https://github.com/babel/babel/pull/7553#issuecomment-381434519. I'm still in the middle of cleaning up all this code. Don't expect `transformClass` to survive much longer as it's written currently.
25 lines
814 B
JavaScript
25 lines
814 B
JavaScript
var Test =
|
|
/*#__PURE__*/
|
|
function (_Foo) {
|
|
"use strict";
|
|
|
|
function Test() {
|
|
var _this;
|
|
|
|
babelHelpers.classCallCheck(this, Test);
|
|
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Test).call(this));
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", babelHelpers.assertThisInitialized(_this)).whatever();
|
|
babelHelpers.get(babelHelpers.getPrototypeOf(Test.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
|
|
return _this;
|
|
}
|
|
|
|
babelHelpers.createClass(Test, null, [{
|
|
key: "test",
|
|
value: function test() {
|
|
return babelHelpers.get(babelHelpers.getPrototypeOf(Test), "wow", this).call(this);
|
|
}
|
|
}]);
|
|
babelHelpers.inherits(Test, _Foo);
|
|
return Test;
|
|
}(Foo);
|