Move more class state out of replaceSupers (#7750)
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.
This commit is contained in:
@@ -8,9 +8,9 @@ function (_Bar) {
|
||||
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
|
||||
var t = () => babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(_this);
|
||||
var t = () => babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "test", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
|
||||
|
||||
babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(_this);
|
||||
babelHelpers.get(babelHelpers.getPrototypeOf(Foo.prototype), "foo", babelHelpers.assertThisInitialized(_this)).call(babelHelpers.assertThisInitialized(_this));
|
||||
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user