Fix returning an object in a derived class constructor without super (#5885)
This commit is contained in:
committed by
Henry Zhu
parent
960e1708a1
commit
e170e6d760
@@ -6,14 +6,11 @@ let A = function (_B) {
|
||||
_inheritsLoose(A, _B);
|
||||
|
||||
function A(track) {
|
||||
if (track !== undefined) {
|
||||
var _this = _B.call(this, track) || this;
|
||||
} else {
|
||||
var _this = _B.call(this) || this;
|
||||
}
|
||||
var _this;
|
||||
|
||||
if (track !== undefined) _this = _B.call(this, track) || this;else _this = _B.call(this) || this;
|
||||
return _this;
|
||||
}
|
||||
|
||||
return A;
|
||||
}(B);
|
||||
}(B);
|
||||
Reference in New Issue
Block a user