Skip to content

Commit aa26a59

Browse files
authored
Merge pull request #24244 from Andarist/redefining-helpers
Use redefining helper pattern for better tree-shakeability
2 parents 3846e7b + 3af425b commit aa26a59

File tree

808 files changed

+5662
-3213
lines changed

Some content is hidden

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

808 files changed

+5662
-3213
lines changed

src/compiler/transformers/es2015.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -4067,9 +4067,13 @@ namespace ts {
40674067
priority: 0,
40684068
text: `
40694069
var __extends = (this && this.__extends) || (function () {
4070-
var extendStatics = Object.setPrototypeOf ||
4071-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4072-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4070+
var extendStatics = function (d, b) {
4071+
extendStatics = Object.setPrototypeOf ||
4072+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
4073+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
4074+
return extendStatics(d, b);
4075+
}
4076+
40734077
return function (d, b) {
40744078
extendStatics(d, b);
40754079
function __() { this.constructor = d; }

src/compiler/transformers/esnext.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -890,13 +890,16 @@ namespace ts {
890890
scoped: false,
891891
priority: 1,
892892
text: `
893-
var __assign = (this && this.__assign) || Object.assign || function(t) {
894-
for (var s, i = 1, n = arguments.length; i < n; i++) {
895-
s = arguments[i];
896-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
897-
t[p] = s[p];
898-
}
899-
return t;
893+
var __assign = (this && this.__assign) || function () {
894+
__assign = Object.assign || function(t) {
895+
for (var s, i = 1, n = arguments.length; i < n; i++) {
896+
s = arguments[i];
897+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
898+
t[p] = s[p];
899+
}
900+
return t;
901+
};
902+
return __assign.apply(this, arguments);
900903
};`
901904
};
902905

tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ module A {
2222

2323
//// [ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js]
2424
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]; };
25+
var extendStatics = function (d, b) {
26+
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 extendStatics(d, b);
30+
}
2831
return function (d, b) {
2932
extendStatics(d, b);
3033
function __() { this.constructor = d; }

tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ module A {
2626

2727
//// [ExportClassWithInaccessibleTypeInTypeParameterConstraint.js]
2828
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]; };
29+
var extendStatics = function (d, b) {
30+
extendStatics = Object.setPrototypeOf ||
31+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
33+
return extendStatics(d, b);
34+
}
3235
return function (d, b) {
3336
extendStatics(d, b);
3437
function __() { this.constructor = d; }

tests/baselines/reference/abstractClassInLocalScope.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
//// [abstractClassInLocalScope.js]
1111
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]; };
12+
var extendStatics = function (d, b) {
13+
extendStatics = Object.setPrototypeOf ||
14+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16+
return extendStatics(d, b);
17+
}
1518
return function (d, b) {
1619
extendStatics(d, b);
1720
function __() { this.constructor = d; }

tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99

1010
//// [abstractClassInLocalScopeIsAbstract.js]
1111
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]; };
12+
var extendStatics = function (d, b) {
13+
extendStatics = Object.setPrototypeOf ||
14+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
16+
return extendStatics(d, b);
17+
}
1518
return function (d, b) {
1619
extendStatics(d, b);
1720
function __() { this.constructor = d; }

tests/baselines/reference/abstractProperty.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ class C extends B {
2323

2424
//// [abstractProperty.js]
2525
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]; };
26+
var extendStatics = function (d, b) {
27+
extendStatics = Object.setPrototypeOf ||
28+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
30+
return extendStatics(d, b);
31+
}
2932
return function (d, b) {
3033
extendStatics(d, b);
3134
function __() { this.constructor = d; }

tests/baselines/reference/abstractPropertyNegative.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ abstract class AbstractAccessorMismatch {
4545

4646
//// [abstractPropertyNegative.js]
4747
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]; };
48+
var extendStatics = function (d, b) {
49+
extendStatics = Object.setPrototypeOf ||
50+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
51+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
52+
return extendStatics(d, b);
53+
}
5154
return function (d, b) {
5255
extendStatics(d, b);
5356
function __() { this.constructor = d; }

tests/baselines/reference/accessOverriddenBaseClassMember1.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ class ColoredPoint extends Point {
1717

1818
//// [accessOverriddenBaseClassMember1.js]
1919
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]; };
20+
var extendStatics = function (d, b) {
21+
extendStatics = Object.setPrototypeOf ||
22+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
23+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
24+
return extendStatics(d, b);
25+
}
2326
return function (d, b) {
2427
extendStatics(d, b);
2528
function __() { this.constructor = d; }

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

+6-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ class LanguageSpec_section_4_5_inference {
2626

2727
//// [accessors_spec_section-4.5_inference.js]
2828
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]; };
29+
var extendStatics = function (d, b) {
30+
extendStatics = Object.setPrototypeOf ||
31+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
32+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
33+
return extendStatics(d, b);
34+
}
3235
return function (d, b) {
3336
extendStatics(d, b);
3437
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInAccessorsOfClass.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ exports.Model = Model;
3939
//// [aliasUsage1_moduleA.js]
4040
"use strict";
4141
var __extends = (this && this.__extends) || (function () {
42-
var extendStatics = Object.setPrototypeOf ||
43-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
44-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
42+
var extendStatics = function (d, b) {
43+
extendStatics = Object.setPrototypeOf ||
44+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
45+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
46+
return extendStatics(d, b);
47+
}
4548
return function (d, b) {
4649
extendStatics(d, b);
4750
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInArray.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ exports.Model = Model;
3333
//// [aliasUsageInArray_moduleA.js]
3434
"use strict";
3535
var __extends = (this && this.__extends) || (function () {
36-
var extendStatics = Object.setPrototypeOf ||
37-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
38-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36+
var extendStatics = function (d, b) {
37+
extendStatics = Object.setPrototypeOf ||
38+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
39+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
40+
return extendStatics(d, b);
41+
}
3942
return function (d, b) {
4043
extendStatics(d, b);
4144
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInFunctionExpression.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ exports.Model = Model;
3232
//// [aliasUsageInFunctionExpression_moduleA.js]
3333
"use strict";
3434
var __extends = (this && this.__extends) || (function () {
35-
var extendStatics = Object.setPrototypeOf ||
36-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
35+
var extendStatics = function (d, b) {
36+
extendStatics = Object.setPrototypeOf ||
37+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
38+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
39+
return extendStatics(d, b);
40+
}
3841
return function (d, b) {
3942
extendStatics(d, b);
4043
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInGenericFunction.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ exports.Model = Model;
3636
//// [aliasUsageInGenericFunction_moduleA.js]
3737
"use strict";
3838
var __extends = (this && this.__extends) || (function () {
39-
var extendStatics = Object.setPrototypeOf ||
40-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
39+
var extendStatics = function (d, b) {
40+
extendStatics = Object.setPrototypeOf ||
41+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
42+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
43+
return extendStatics(d, b);
44+
}
4245
return function (d, b) {
4346
extendStatics(d, b);
4447
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInIndexerOfClass.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,12 @@ exports.Model = Model;
3838
//// [aliasUsageInIndexerOfClass_moduleA.js]
3939
"use strict";
4040
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]; };
41+
var extendStatics = function (d, b) {
42+
extendStatics = Object.setPrototypeOf ||
43+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
44+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
45+
return extendStatics(d, b);
46+
}
4447
return function (d, b) {
4548
extendStatics(d, b);
4649
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInObjectLiteral.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ exports.Model = Model;
3333
//// [aliasUsageInObjectLiteral_moduleA.js]
3434
"use strict";
3535
var __extends = (this && this.__extends) || (function () {
36-
var extendStatics = Object.setPrototypeOf ||
37-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
38-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
36+
var extendStatics = function (d, b) {
37+
extendStatics = Object.setPrototypeOf ||
38+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
39+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
40+
return extendStatics(d, b);
41+
}
3942
return function (d, b) {
4043
extendStatics(d, b);
4144
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInOrExpression.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ exports.Model = Model;
3636
//// [aliasUsageInOrExpression_moduleA.js]
3737
"use strict";
3838
var __extends = (this && this.__extends) || (function () {
39-
var extendStatics = Object.setPrototypeOf ||
40-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
39+
var extendStatics = function (d, b) {
40+
extendStatics = Object.setPrototypeOf ||
41+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
42+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
43+
return extendStatics(d, b);
44+
}
4245
return function (d, b) {
4346
extendStatics(d, b);
4447
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js

+12-6
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ exports.Model = Model;
3636
//// [aliasUsageInTypeArgumentOfExtendsClause_moduleA.js]
3737
"use strict";
3838
var __extends = (this && this.__extends) || (function () {
39-
var extendStatics = Object.setPrototypeOf ||
40-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
41-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
39+
var extendStatics = function (d, b) {
40+
extendStatics = Object.setPrototypeOf ||
41+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
42+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
43+
return extendStatics(d, b);
44+
}
4245
return function (d, b) {
4346
extendStatics(d, b);
4447
function __() { this.constructor = d; }
@@ -58,9 +61,12 @@ exports.VisualizationModel = VisualizationModel;
5861
//// [aliasUsageInTypeArgumentOfExtendsClause_main.js]
5962
"use strict";
6063
var __extends = (this && this.__extends) || (function () {
61-
var extendStatics = Object.setPrototypeOf ||
62-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
63-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
64+
var extendStatics = function (d, b) {
65+
extendStatics = Object.setPrototypeOf ||
66+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
67+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
68+
return extendStatics(d, b);
69+
}
6470
return function (d, b) {
6571
extendStatics(d, b);
6672
function __() { this.constructor = d; }

tests/baselines/reference/aliasUsageInVarAssignment.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,12 @@ exports.Model = Model;
3232
//// [aliasUsageInVarAssignment_moduleA.js]
3333
"use strict";
3434
var __extends = (this && this.__extends) || (function () {
35-
var extendStatics = Object.setPrototypeOf ||
36-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
37-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
35+
var extendStatics = function (d, b) {
36+
extendStatics = Object.setPrototypeOf ||
37+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
38+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
39+
return extendStatics(d, b);
40+
}
3841
return function (d, b) {
3942
extendStatics(d, b);
4043
function __() { this.constructor = d; }

tests/baselines/reference/ambiguousOverloadResolution.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ var t: number = f(x, x); // Not an error
1010

1111
//// [ambiguousOverloadResolution.js]
1212
var __extends = (this && this.__extends) || (function () {
13-
var extendStatics = Object.setPrototypeOf ||
14-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
13+
var extendStatics = function (d, b) {
14+
extendStatics = Object.setPrototypeOf ||
15+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17+
return extendStatics(d, b);
18+
}
1619
return function (d, b) {
1720
extendStatics(d, b);
1821
function __() { this.constructor = d; }

tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ export function Configurable<T extends Constructor<{}>>(base: T): T {
2323

2424
//// [dist.js]
2525
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]; };
26+
var extendStatics = function (d, b) {
27+
extendStatics = Object.setPrototypeOf ||
28+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
30+
return extendStatics(d, b);
31+
}
2932
return function (d, b) {
3033
extendStatics(d, b);
3134
function __() { this.constructor = d; }

tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@ export function y() {
1010
//// [anonymousClassDeclarationDoesntPrintWithReadonly.js]
1111
"use strict";
1212
var __extends = (this && this.__extends) || (function () {
13-
var extendStatics = Object.setPrototypeOf ||
14-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
15-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
13+
var extendStatics = function (d, b) {
14+
extendStatics = Object.setPrototypeOf ||
15+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
16+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
17+
return extendStatics(d, b);
18+
}
1619
return function (d, b) {
1720
extendStatics(d, b);
1821
function __() { this.constructor = d; }

tests/baselines/reference/apparentTypeSubtyping.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,12 @@ class Derived2<U extends String> extends Base2 { // error because of the prototy
2525
// subtype checks use the apparent type of the target type
2626
// S is a subtype of a type T, and T is a supertype of S, if one of the following is true, where S' denotes the apparent type (section 3.8.1) of S:
2727
var __extends = (this && this.__extends) || (function () {
28-
var extendStatics = Object.setPrototypeOf ||
29-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
30-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
28+
var extendStatics = function (d, b) {
29+
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 extendStatics(d, b);
33+
}
3134
return function (d, b) {
3235
extendStatics(d, b);
3336
function __() { this.constructor = d; }

0 commit comments

Comments
 (0)