Skip to content

Commit 8e58694

Browse files
committed
accept baselines
1 parent 2885eb2 commit 8e58694

4 files changed

+18
-18
lines changed

Diff for: tests/baselines/reference/typeGuardFunctionOfFormThis.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ var RoyalGuard = (function () {
157157
return this instanceof FollowerGuard;
158158
};
159159
return RoyalGuard;
160-
})();
160+
}());
161161
var LeadGuard = (function (_super) {
162162
__extends(LeadGuard, _super);
163163
function LeadGuard() {
@@ -166,7 +166,7 @@ var LeadGuard = (function (_super) {
166166
LeadGuard.prototype.lead = function () { };
167167
;
168168
return LeadGuard;
169-
})(RoyalGuard);
169+
}(RoyalGuard));
170170
var FollowerGuard = (function (_super) {
171171
__extends(FollowerGuard, _super);
172172
function FollowerGuard() {
@@ -175,7 +175,7 @@ var FollowerGuard = (function (_super) {
175175
FollowerGuard.prototype.follow = function () { };
176176
;
177177
return FollowerGuard;
178-
})(RoyalGuard);
178+
}(RoyalGuard));
179179
var a = new FollowerGuard();
180180
if (a.isLeader()) {
181181
a.lead();
@@ -220,23 +220,23 @@ var ArrowGuard = (function () {
220220
};
221221
}
222222
return ArrowGuard;
223-
})();
223+
}());
224224
var ArrowElite = (function (_super) {
225225
__extends(ArrowElite, _super);
226226
function ArrowElite() {
227227
_super.apply(this, arguments);
228228
}
229229
ArrowElite.prototype.defend = function () { };
230230
return ArrowElite;
231-
})(ArrowGuard);
231+
}(ArrowGuard));
232232
var ArrowMedic = (function (_super) {
233233
__extends(ArrowMedic, _super);
234234
function ArrowMedic() {
235235
_super.apply(this, arguments);
236236
}
237237
ArrowMedic.prototype.heal = function () { };
238238
return ArrowMedic;
239-
})(ArrowGuard);
239+
}(ArrowGuard));
240240
var guard = new ArrowGuard();
241241
if (guard.isElite()) {
242242
guard.defend();
@@ -262,23 +262,23 @@ var MimicGuard = (function () {
262262
MimicGuard.prototype.isFollower = function () { return this instanceof MimicFollower; };
263263
;
264264
return MimicGuard;
265-
})();
265+
}());
266266
var MimicLeader = (function (_super) {
267267
__extends(MimicLeader, _super);
268268
function MimicLeader() {
269269
_super.apply(this, arguments);
270270
}
271271
MimicLeader.prototype.lead = function () { };
272272
return MimicLeader;
273-
})(MimicGuard);
273+
}(MimicGuard));
274274
var MimicFollower = (function (_super) {
275275
__extends(MimicFollower, _super);
276276
function MimicFollower() {
277277
_super.apply(this, arguments);
278278
}
279279
MimicFollower.prototype.follow = function () { };
280280
return MimicFollower;
281-
})(MimicGuard);
281+
}(MimicGuard));
282282
var mimic = new MimicGuard();
283283
a.isLeader = mimic.isLeader;
284284
a.isFollower = mimic.isFollower;

Diff for: tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ var RoyalGuard = (function () {
7575
return this instanceof FollowerGuard;
7676
};
7777
return RoyalGuard;
78-
})();
78+
}());
7979
var LeadGuard = (function (_super) {
8080
__extends(LeadGuard, _super);
8181
function LeadGuard() {
@@ -84,7 +84,7 @@ var LeadGuard = (function (_super) {
8484
LeadGuard.prototype.lead = function () { };
8585
;
8686
return LeadGuard;
87-
})(RoyalGuard);
87+
}(RoyalGuard));
8888
var FollowerGuard = (function (_super) {
8989
__extends(FollowerGuard, _super);
9090
function FollowerGuard() {
@@ -93,7 +93,7 @@ var FollowerGuard = (function (_super) {
9393
FollowerGuard.prototype.follow = function () { };
9494
;
9595
return FollowerGuard;
96-
})(RoyalGuard);
96+
}(RoyalGuard));
9797
var a = new FollowerGuard();
9898
var b = new LeadGuard();
9999
// Mismatched guards shouldn't be assignable

Diff for: tests/baselines/reference/typeGuardOfFormThisMember.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ var Test;
113113
configurable: true
114114
});
115115
return FileSystemObject;
116-
})();
116+
}());
117117
Test.FileSystemObject = FileSystemObject;
118118
var File = (function (_super) {
119119
__extends(File, _super);
@@ -122,15 +122,15 @@ var Test;
122122
this.content = content;
123123
}
124124
return File;
125-
})(FileSystemObject);
125+
}(FileSystemObject));
126126
Test.File = File;
127127
var Directory = (function (_super) {
128128
__extends(Directory, _super);
129129
function Directory() {
130130
_super.apply(this, arguments);
131131
}
132132
return Directory;
133-
})(FileSystemObject);
133+
}(FileSystemObject));
134134
Test.Directory = Directory;
135135
var file = new File("foo/bar.txt", "foo");
136136
file.isNetworked = false;

Diff for: tests/baselines/reference/typeGuardOfFormThisMemberErrors.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ var Test;
6363
configurable: true
6464
});
6565
return FileSystemObject;
66-
})();
66+
}());
6767
Test.FileSystemObject = FileSystemObject;
6868
var File = (function (_super) {
6969
__extends(File, _super);
@@ -72,15 +72,15 @@ var Test;
7272
this.content = content;
7373
}
7474
return File;
75-
})(FileSystemObject);
75+
}(FileSystemObject));
7676
Test.File = File;
7777
var Directory = (function (_super) {
7878
__extends(Directory, _super);
7979
function Directory() {
8080
_super.apply(this, arguments);
8181
}
8282
return Directory;
83-
})(FileSystemObject);
83+
}(FileSystemObject));
8484
Test.Directory = Directory;
8585
var file = new File("foo/bar.txt", "foo");
8686
file.isNetworked = file.isFile;

0 commit comments

Comments
 (0)