Skip to content

Commit c09a8c9

Browse files
committed
address review comment
1 parent 074f2b7 commit c09a8c9

File tree

667 files changed

+7366
-6695
lines changed

Some content is hidden

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

667 files changed

+7366
-6695
lines changed

src/compiler/transformers/es2015.ts

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3336,14 +3336,15 @@ namespace ts {
33363336
scoped: false,
33373337
priority: 0,
33383338
text: `
3339-
var __extendStatics = (this && this.__extendStatics) ||
3340-
Object.setPrototypeOf ||
3341-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3342-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
3343-
var __extends = (this && this.__extends) || function (d, b) {
3344-
__extendStatics(d, b);
3345-
function __() { this.constructor = d; }
3346-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3347-
};`
3339+
var __extends = (this && this.__extends) || (function () {
3340+
var __extendStatics = Object.setPrototypeOf ||
3341+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
3342+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
3343+
return function (d, b) {
3344+
__extendStatics(d, b);
3345+
function __() { this.constructor = d; }
3346+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
3347+
};
3348+
})();`
33483349
};
33493350
}

tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ module A {
2121

2222

2323
//// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js]
24-
var __extendStatics = (this && this.__extendStatics) ||
25-
Object.setPrototypeOf ||
26-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28-
var __extends = (this && this.__extends) || function (d, b) {
29-
__extendStatics(d, b);
30-
function __() { this.constructor = d; }
31-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32-
};
24+
var __extends = (this && this.__extends) || (function () {
25+
var __extendStatics = Object.setPrototypeOf ||
26+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
27+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28+
return function (d, b) {
29+
__extendStatics(d, b);
30+
function __() { this.constructor = d; }
31+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
32+
};
33+
})();
3334
var A;
3435
(function (A) {
3536
var Point = (function () {

tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ module A {
2525

2626

2727
//// [ExportClassWithInaccessibleTypeInTypeParameterConstraint.js]
28-
var __extendStatics = (this && this.__extendStatics) ||
29-
Object.setPrototypeOf ||
30-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32-
var __extends = (this && this.__extends) || function (d, b) {
33-
__extendStatics(d, b);
34-
function __() { this.constructor = d; }
35-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36-
};
28+
var __extends = (this && this.__extends) || (function () {
29+
var __extendStatics = Object.setPrototypeOf ||
30+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32+
return function (d, b) {
33+
__extendStatics(d, b);
34+
function __() { this.constructor = d; }
35+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36+
};
37+
})();
3738
var A;
3839
(function (A) {
3940
var Point = (function () {

tests/baselines/reference/abstractClassInLocalScope.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88

99

1010
//// [abstractClassInLocalScope.js]
11-
var __extendStatics = (this && this.__extendStatics) ||
12-
Object.setPrototypeOf ||
13-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15-
var __extends = (this && this.__extends) || function (d, b) {
16-
__extendStatics(d, b);
17-
function __() { this.constructor = d; }
18-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19-
};
11+
var __extends = (this && this.__extends) || (function () {
12+
var __extendStatics = Object.setPrototypeOf ||
13+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15+
return function (d, b) {
16+
__extendStatics(d, b);
17+
function __() { this.constructor = d; }
18+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19+
};
20+
})();
2021
(function () {
2122
var A = (function () {
2223
function A() {

tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,16 @@
88

99

1010
//// [abstractClassInLocalScopeIsAbstract.js]
11-
var __extendStatics = (this && this.__extendStatics) ||
12-
Object.setPrototypeOf ||
13-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15-
var __extends = (this && this.__extends) || function (d, b) {
16-
__extendStatics(d, b);
17-
function __() { this.constructor = d; }
18-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19-
};
11+
var __extends = (this && this.__extends) || (function () {
12+
var __extendStatics = Object.setPrototypeOf ||
13+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
14+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
15+
return function (d, b) {
16+
__extendStatics(d, b);
17+
function __() { this.constructor = d; }
18+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19+
};
20+
})();
2021
(function () {
2122
var A = (function () {
2223
function A() {

tests/baselines/reference/abstractProperty.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,16 @@ class C extends B {
2222
}
2323

2424
//// [abstractProperty.js]
25-
var __extendStatics = (this && this.__extendStatics) ||
26-
Object.setPrototypeOf ||
27-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
29-
var __extends = (this && this.__extends) || function (d, b) {
30-
__extendStatics(d, b);
31-
function __() { this.constructor = d; }
32-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
33-
};
25+
var __extends = (this && this.__extends) || (function () {
26+
var __extendStatics = Object.setPrototypeOf ||
27+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
28+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
29+
return function (d, b) {
30+
__extendStatics(d, b);
31+
function __() { this.constructor = d; }
32+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
33+
};
34+
})();
3435
var B = (function () {
3536
function B() {
3637
}

tests/baselines/reference/abstractPropertyNegative.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,16 @@ abstract class AbstractAccessorMismatch {
4444

4545

4646
//// [abstractPropertyNegative.js]
47-
var __extendStatics = (this && this.__extendStatics) ||
48-
Object.setPrototypeOf ||
49-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
51-
var __extends = (this && this.__extends) || function (d, b) {
52-
__extendStatics(d, b);
53-
function __() { this.constructor = d; }
54-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55-
};
47+
var __extends = (this && this.__extends) || (function () {
48+
var __extendStatics = Object.setPrototypeOf ||
49+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
50+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
51+
return function (d, b) {
52+
__extendStatics(d, b);
53+
function __() { this.constructor = d; }
54+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
55+
};
56+
})();
5657
var B = (function () {
5758
function B() {
5859
}

tests/baselines/reference/accessOverriddenBaseClassMember1.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,16 @@ class ColoredPoint extends Point {
1616

1717

1818
//// [accessOverriddenBaseClassMember1.js]
19-
var __extendStatics = (this && this.__extendStatics) ||
20-
Object.setPrototypeOf ||
21-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
23-
var __extends = (this && this.__extends) || function (d, b) {
24-
__extendStatics(d, b);
25-
function __() { this.constructor = d; }
26-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27-
};
19+
var __extends = (this && this.__extends) || (function () {
20+
var __extendStatics = Object.setPrototypeOf ||
21+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
22+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
23+
return function (d, b) {
24+
__extendStatics(d, b);
25+
function __() { this.constructor = d; }
26+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27+
};
28+
})();
2829
var Point = (function () {
2930
function Point(x, y) {
3031
this.x = x;

tests/baselines/reference/accessors_spec_section-4.5_inference.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,16 @@ class LanguageSpec_section_4_5_inference {
2525
}
2626

2727
//// [accessors_spec_section-4.5_inference.js]
28-
var __extendStatics = (this && this.__extendStatics) ||
29-
Object.setPrototypeOf ||
30-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32-
var __extends = (this && this.__extends) || function (d, b) {
33-
__extendStatics(d, b);
34-
function __() { this.constructor = d; }
35-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36-
};
28+
var __extends = (this && this.__extends) || (function () {
29+
var __extendStatics = Object.setPrototypeOf ||
30+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
31+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
32+
return function (d, b) {
33+
__extendStatics(d, b);
34+
function __() { this.constructor = d; }
35+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
36+
};
37+
})();
3738
var A = (function () {
3839
function A() {
3940
}

tests/baselines/reference/aliasUsageInAccessorsOfClass.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,16 @@ var Model = (function () {
3737
exports.Model = Model;
3838
//// [aliasUsage1_moduleA.js]
3939
"use strict";
40-
var __extendStatics = (this && this.__extendStatics) ||
41-
Object.setPrototypeOf ||
42-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
44-
var __extends = (this && this.__extends) || function (d, b) {
45-
__extendStatics(d, b);
46-
function __() { this.constructor = d; }
47-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
48-
};
40+
var __extends = (this && this.__extends) || (function () {
41+
var __extendStatics = Object.setPrototypeOf ||
42+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
43+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
44+
return function (d, b) {
45+
__extendStatics(d, b);
46+
function __() { this.constructor = d; }
47+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
48+
};
49+
})();
4950
var Backbone = require("./aliasUsage1_backbone");
5051
var VisualizationModel = (function (_super) {
5152
__extends(VisualizationModel, _super);

0 commit comments

Comments
 (0)