Skip to content

Commit cd787cc

Browse files
Accepted baselines.
1 parent dc58fb5 commit cd787cc

File tree

54 files changed

+74
-148
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+74
-148
lines changed

tests/baselines/reference/arrowFunctionContexts.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ var Base = (function () {
116116
var Derived = (function (_super) {
117117
__extends(Derived, _super);
118118
function Derived() {
119-
var _this = _super.call(this, function () { return _this; }) || this;
120-
return _this;
119+
return _super.call(this, function () { return _this; }) || this;
121120
}
122121
return Derived;
123122
}(Base));
@@ -158,8 +157,7 @@ var M2;
158157
var Derived = (function (_super) {
159158
__extends(Derived, _super);
160159
function Derived() {
161-
var _this = _super.call(this, function () { return _this; }) || this;
162-
return _this;
160+
return _super.call(this, function () { return _this; }) || this;
163161
}
164162
return Derived;
165163
}(Base));

tests/baselines/reference/baseCheck.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,14 @@ var C = (function () {
4343
var ELoc = (function (_super) {
4444
__extends(ELoc, _super);
4545
function ELoc(x) {
46-
var _this = _super.call(this, 0, x) || this;
47-
return _this;
46+
return _super.call(this, 0, x) || this;
4847
}
4948
return ELoc;
5049
}(C));
5150
var ELocVar = (function (_super) {
5251
__extends(ELocVar, _super);
5352
function ELocVar(x) {
54-
var _this = _super.call(this, 0, loc) || this;
55-
return _this;
53+
return _super.call(this, 0, loc) || this;
5654
}
5755
ELocVar.prototype.m = function () {
5856
var loc = 10;

tests/baselines/reference/captureThisInSuperCall.js

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

tests/baselines/reference/checkForObjectTooStrict.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,14 @@ var Foo;
4949
var Bar = (function (_super) {
5050
__extends(Bar, _super);
5151
function Bar() {
52-
var _this = _super.call(this) || this;
53-
return _this;
52+
return _super.call(this) || this;
5453
}
5554
return Bar;
5655
}(Foo.Object));
5756
var Baz = (function (_super) {
5857
__extends(Baz, _super);
5958
function Baz() {
60-
var _this = _super.call(this) || this;
61-
return _this;
59+
return _super.call(this) || this;
6260
}
6361
return Baz;
6462
}(Object));

tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js

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

tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js

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

tests/baselines/reference/classSideInheritance2.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ var __extends = (this && this.__extends) || function (d, b) {
2929
var SubText = (function (_super) {
3030
__extends(SubText, _super);
3131
function SubText(text, span) {
32-
var _this = _super.call(this) || this;
33-
return _this;
32+
return _super.call(this) || this;
3433
}
3534
return SubText;
3635
}(TextBase));

tests/baselines/reference/classSideInheritance3.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ var B = (function (_super) {
4242
var C = (function (_super) {
4343
__extends(C, _super);
4444
function C(x) {
45-
var _this = _super.call(this, x) || this;
46-
return _this;
45+
return _super.call(this, x) || this;
4746
}
4847
return C;
4948
}(A));

tests/baselines/reference/classUpdateTests.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,7 @@ var H = (function () {
189189
var I = (function (_super) {
190190
__extends(I, _super);
191191
function I() {
192-
var _this = _super.call(this) || this;
193-
return _this;
192+
return _super.call(this) || this;
194193
} // ERROR - no super call allowed
195194
return I;
196195
}(Object));

tests/baselines/reference/collisionSuperAndParameter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ var Foo2 = (function (_super) {
124124
var Foo4 = (function (_super) {
125125
__extends(Foo4, _super);
126126
function Foo4(_super) {
127-
var _this = _super.call(this) || this;
128-
return _this;
127+
return _super.call(this) || this;
129128
}
130129
Foo4.prototype.y = function (_super) {
131130
var _this = this;

0 commit comments

Comments
 (0)