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;
|
||||
|
||||
Reference in New Issue
Block a user