Fix duplicated assertThisInitialized calls in constructors (#9458)
This commit is contained in:
committed by
Nicolò Ribaudo
parent
d1514f57bd
commit
045d019149
@@ -21,7 +21,7 @@ function (_b) {
|
||||
_this = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(a1).call(this));
|
||||
|
||||
_this.x = function () {
|
||||
return babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this));
|
||||
return babelHelpers.assertThisInitialized(_this);
|
||||
};
|
||||
|
||||
return _this;
|
||||
@@ -42,7 +42,7 @@ function (_b2) {
|
||||
_this2 = babelHelpers.possibleConstructorReturn(this, babelHelpers.getPrototypeOf(a2).call(this));
|
||||
|
||||
_this2.x = function () {
|
||||
return babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(_this2));
|
||||
return babelHelpers.assertThisInitialized(_this2);
|
||||
};
|
||||
|
||||
return _this2;
|
||||
|
||||
@@ -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