Fix returning an object in a derived class constructor without super (#5885)

This commit is contained in:
Justin Ridgewell
2017-07-11 17:43:19 -04:00
committed by Henry Zhu
parent 960e1708a1
commit e170e6d760
26 changed files with 165 additions and 103 deletions

View File

@@ -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);