Fix duplicated assertThisInitialized calls in constructors (#9458)
This commit is contained in:
committed by
Nicolò Ribaudo
parent
d1514f57bd
commit
045d019149
@@ -9,7 +9,7 @@ function (_Bar) {
|
||||
var _this;
|
||||
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this, babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))));
|
||||
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this, babelHelpers.assertThisInitialized(_this)));
|
||||
}
|
||||
|
||||
return Foo;
|
||||
|
||||
@@ -10,7 +10,7 @@ function (_Bar) {
|
||||
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
|
||||
var fn = () => babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this));
|
||||
var fn = () => babelHelpers.assertThisInitialized(_this);
|
||||
|
||||
fn();
|
||||
return _this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
|
||||
|
||||
@@ -10,7 +10,7 @@ function (_Bar) {
|
||||
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
|
||||
var fn = () => babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this));
|
||||
var fn = () => babelHelpers.assertThisInitialized(_this);
|
||||
|
||||
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(Foo).call(this));
|
||||
fn();
|
||||
|
||||
@@ -9,7 +9,7 @@ function (_Bar) {
|
||||
var _this;
|
||||
|
||||
babelHelpers.classCallCheck(this, Foo);
|
||||
Foo[babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this))];
|
||||
Foo[babelHelpers.assertThisInitialized(_this)];
|
||||
return babelHelpers.possibleConstructorReturn(_this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user