Skip to content

Commit 0de57d9

Browse files
Accepted baselines.
1 parent 7da4b85 commit 0de57d9

13 files changed

+28
-14
lines changed

tests/baselines/reference/arrowFunctionContexts.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ var Base = (function () {
116116
var Derived = (function (_super) {
117117
__extends(Derived, _super);
118118
function Derived() {
119-
return _super.call(this, function () { return _this; }) || this;
119+
var _this = _super.call(this, function () { return _this; }) || this;
120+
return _this;
120121
}
121122
return Derived;
122123
}(Base));
@@ -157,7 +158,8 @@ var M2;
157158
var Derived = (function (_super) {
158159
__extends(Derived, _super);
159160
function Derived() {
160-
return _super.call(this, function () { return _this; }) || this;
161+
var _this = _super.call(this, function () { return _this; }) || this;
162+
return _this;
161163
}
162164
return Derived;
163165
}(Base));

tests/baselines/reference/captureThisInSuperCall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ var A = (function () {
2222
var B = (function (_super) {
2323
__extends(B, _super);
2424
function B() {
25-
return _super.call(this, { test: function () { return _this.someMethod(); } }) || this;
25+
var _this = _super.call(this, { test: function () { return _this.someMethod(); } }) || this;
26+
return _this;
2627
}
2728
B.prototype.someMethod = function () { };
2829
return B;

tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ var Based = (function () {
2525
var Derived = (function (_super) {
2626
__extends(Derived, _super);
2727
function Derived() {
28-
return _super.call(this, this.x) || this;
28+
var _this = _super.call(this, _this.x) || this;
29+
return _this;
2930
}
3031
return Derived;
3132
}(Based));

tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ var Base = (function () {
2323
var Super = (function (_super) {
2424
__extends(Super, _super);
2525
function Super() {
26-
return _super.call(this, (function () { return _this; })) || this;
26+
var _this = _super.call(this, (function () { return _this; })) || this;
27+
return _this;
2728
}
2829
return Super;
2930
}(Base));

tests/baselines/reference/derivedClassSuperCallsWithThisArg.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ var Base = (function () {
4242
var Derived = (function (_super) {
4343
__extends(Derived, _super);
4444
function Derived() {
45-
return _super.call(this, _this) || this;
45+
var _this = _super.call(this, _this) || this;
46+
return _this;
4647
}
4748
return Derived;
4849
}(Base));

tests/baselines/reference/superCallBeforeThisAccessing2.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var Base = (function () {
2424
var D = (function (_super) {
2525
__extends(D, _super);
2626
function D() {
27-
return _super.call(this, function () { _this._t; }) || this;
27+
var _this = _super.call(this, function () { _this._t; }) || this;
28+
return _this;
2829
}
2930
return D;
3031
}(Base));

tests/baselines/reference/superCallBeforeThisAccessing6.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var Base = (function () {
2424
var D = (function (_super) {
2525
__extends(D, _super);
2626
function D() {
27-
return _super.call(this, this) || this;
27+
var _this = _super.call(this, _this) || this;
28+
return _this;
2829
}
2930
return D;
3031
}(Base));

tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ var C1 = (function (_super) {
4040
var C2 = (function (_super) {
4141
__extends(C2, _super);
4242
function C2() {
43-
return _super.call(this, _super.x.call(_this)) || this;
43+
var _this = _super.call(this, _super.x.call(_this)) || this;
44+
return _this;
4445
}
4546
return C2;
4647
}(B));

tests/baselines/reference/thisInInvalidContexts.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ var ClassWithNoInitializer = (function (_super) {
7070
__extends(ClassWithNoInitializer, _super);
7171
//'this' in optional super call
7272
function ClassWithNoInitializer() {
73-
return _super.call(this, _this) || this;
73+
var _this = _super.call(this, _this) || this;
74+
return _this;
7475
}
7576
return ClassWithNoInitializer;
7677
}(BaseErrClass));

tests/baselines/reference/thisInInvalidContextsExternalModule.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ var ClassWithNoInitializer = (function (_super) {
7171
__extends(ClassWithNoInitializer, _super);
7272
//'this' in optional super call
7373
function ClassWithNoInitializer() {
74-
return _super.call(this, _this) || this;
74+
var _this = _super.call(this, _this) || this;
75+
return _this;
7576
}
7677
return ClassWithNoInitializer;
7778
}(BaseErrClass));

0 commit comments

Comments
 (0)