diff --git a/src/compiler/factory/emitHelpers.ts b/src/compiler/factory/emitHelpers.ts
index 255518a2842cf..2f17715ff806f 100644
--- a/src/compiler/factory/emitHelpers.ts
+++ b/src/compiler/factory/emitHelpers.ts
@@ -949,7 +949,18 @@ const extendsHelper: UnscopedEmitHelper = {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();`,
diff --git a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js
index 1e847b1f1829e..02e727ce663cb 100644
--- a/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js
+++ b/tests/baselines/reference/ExportClassWithAccessibleTypesInTypeParameterConstraintsClassHeritageListMemberTypeAnnotations.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js
index eb5cab521ba77..321fb1c054531 100644
--- a/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js
+++ b/tests/baselines/reference/ExportClassWithInaccessibleTypeInTypeParameterConstraint.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/abstractClassInLocalScope.js b/tests/baselines/reference/abstractClassInLocalScope.js
index 33ac1f8a647bd..5090ec7175c45 100644
--- a/tests/baselines/reference/abstractClassInLocalScope.js
+++ b/tests/baselines/reference/abstractClassInLocalScope.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js
index c26fa08b26423..24072ddf14727 100644
--- a/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js
+++ b/tests/baselines/reference/abstractClassInLocalScopeIsAbstract.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/abstractPropertyBasics.js b/tests/baselines/reference/abstractPropertyBasics.js
index c9026e5f3424d..c95d4a16999c1 100644
--- a/tests/baselines/reference/abstractPropertyBasics.js
+++ b/tests/baselines/reference/abstractPropertyBasics.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/abstractPropertyInConstructor.js b/tests/baselines/reference/abstractPropertyInConstructor.js
index 5656a8c9a6120..6649f5239a3d4 100644
--- a/tests/baselines/reference/abstractPropertyInConstructor.js
+++ b/tests/baselines/reference/abstractPropertyInConstructor.js
@@ -107,7 +107,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/abstractPropertyNegative.js b/tests/baselines/reference/abstractPropertyNegative.js
index 193fd8e5a2001..e2a9b4581ed91 100644
--- a/tests/baselines/reference/abstractPropertyNegative.js
+++ b/tests/baselines/reference/abstractPropertyNegative.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/accessOverriddenBaseClassMember1.js b/tests/baselines/reference/accessOverriddenBaseClassMember1.js
index 1a81263e63813..4903ae9adcbf7 100644
--- a/tests/baselines/reference/accessOverriddenBaseClassMember1.js
+++ b/tests/baselines/reference/accessOverriddenBaseClassMember1.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/accessorsOverrideProperty7.js b/tests/baselines/reference/accessorsOverrideProperty7.js
index b4b222b18387d..6cd01daeb5ee4 100644
--- a/tests/baselines/reference/accessorsOverrideProperty7.js
+++ b/tests/baselines/reference/accessorsOverrideProperty7.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/accessors_spec_section-4.5_inference.js b/tests/baselines/reference/accessors_spec_section-4.5_inference.js
index 24c228f075453..4608d1ef04266 100644
--- a/tests/baselines/reference/accessors_spec_section-4.5_inference.js
+++ b/tests/baselines/reference/accessors_spec_section-4.5_inference.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js b/tests/baselines/reference/aliasUsageInAccessorsOfClass.js
index 8c4dca476113e..11b56a49013f1 100644
--- a/tests/baselines/reference/aliasUsageInAccessorsOfClass.js
+++ b/tests/baselines/reference/aliasUsageInAccessorsOfClass.js
@@ -50,7 +50,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInArray.js b/tests/baselines/reference/aliasUsageInArray.js
index 565d7c47f02dd..fab1b9c800732 100644
--- a/tests/baselines/reference/aliasUsageInArray.js
+++ b/tests/baselines/reference/aliasUsageInArray.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInFunctionExpression.js b/tests/baselines/reference/aliasUsageInFunctionExpression.js
index 037c21f0dcd77..26a7c34003f88 100644
--- a/tests/baselines/reference/aliasUsageInFunctionExpression.js
+++ b/tests/baselines/reference/aliasUsageInFunctionExpression.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInGenericFunction.js b/tests/baselines/reference/aliasUsageInGenericFunction.js
index 8d229a117830b..ee25646fec84c 100644
--- a/tests/baselines/reference/aliasUsageInGenericFunction.js
+++ b/tests/baselines/reference/aliasUsageInGenericFunction.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInIndexerOfClass.js b/tests/baselines/reference/aliasUsageInIndexerOfClass.js
index 7ce3cc298d041..be8508f739ce3 100644
--- a/tests/baselines/reference/aliasUsageInIndexerOfClass.js
+++ b/tests/baselines/reference/aliasUsageInIndexerOfClass.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInObjectLiteral.js b/tests/baselines/reference/aliasUsageInObjectLiteral.js
index fb5c1b3e9a963..bf1a574b03fcd 100644
--- a/tests/baselines/reference/aliasUsageInObjectLiteral.js
+++ b/tests/baselines/reference/aliasUsageInObjectLiteral.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInOrExpression.js b/tests/baselines/reference/aliasUsageInOrExpression.js
index 63f9cade8fef1..2c42c61d52d96 100644
--- a/tests/baselines/reference/aliasUsageInOrExpression.js
+++ b/tests/baselines/reference/aliasUsageInOrExpression.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js
index dcb3d9c483fc8..51fb8ea9030d5 100644
--- a/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js
+++ b/tests/baselines/reference/aliasUsageInTypeArgumentOfExtendsClause.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -75,7 +86,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/aliasUsageInVarAssignment.js b/tests/baselines/reference/aliasUsageInVarAssignment.js
index 0e553a6e0a64b..dadec55f2ec7c 100644
--- a/tests/baselines/reference/aliasUsageInVarAssignment.js
+++ b/tests/baselines/reference/aliasUsageInVarAssignment.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/ambiguousOverloadResolution.js b/tests/baselines/reference/ambiguousOverloadResolution.js
index da03893c9e486..5e24b050b1445 100644
--- a/tests/baselines/reference/ambiguousOverloadResolution.js
+++ b/tests/baselines/reference/ambiguousOverloadResolution.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js
index ad02552328f0e..e0a9b73af5649 100644
--- a/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js
+++ b/tests/baselines/reference/amdDeclarationEmitNoExtraDeclare.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js
index 2c0dc04e17776..bcef3f8c8f2a7 100644
--- a/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js
+++ b/tests/baselines/reference/anonClassDeclarationEmitIsAnon.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -88,7 +99,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js b/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js
index ad6dafad14c7f..722b11e26c8ba 100644
--- a/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js
+++ b/tests/baselines/reference/anonymousClassDeclarationDoesntPrintWithReadonly.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/apparentTypeSubtyping.js b/tests/baselines/reference/apparentTypeSubtyping.js
index aef1ab7d1badc..2ab13ccf77e24 100644
--- a/tests/baselines/reference/apparentTypeSubtyping.js
+++ b/tests/baselines/reference/apparentTypeSubtyping.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/apparentTypeSupertype.js b/tests/baselines/reference/apparentTypeSupertype.js
index e7dcffde189b0..c8d0285e85014 100644
--- a/tests/baselines/reference/apparentTypeSupertype.js
+++ b/tests/baselines/reference/apparentTypeSupertype.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayAssignmentTest1.js b/tests/baselines/reference/arrayAssignmentTest1.js
index 0d2051b310bef..74d9372cb08d5 100644
--- a/tests/baselines/reference/arrayAssignmentTest1.js
+++ b/tests/baselines/reference/arrayAssignmentTest1.js
@@ -99,7 +99,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayAssignmentTest2.js b/tests/baselines/reference/arrayAssignmentTest2.js
index caeeb10d16c23..019ba03f68434 100644
--- a/tests/baselines/reference/arrayAssignmentTest2.js
+++ b/tests/baselines/reference/arrayAssignmentTest2.js
@@ -73,7 +73,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayBestCommonTypes.js b/tests/baselines/reference/arrayBestCommonTypes.js
index 530ae4fcbbfcb..27fadbaa5e681 100644
--- a/tests/baselines/reference/arrayBestCommonTypes.js
+++ b/tests/baselines/reference/arrayBestCommonTypes.js
@@ -121,7 +121,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayLiteralTypeInference.js b/tests/baselines/reference/arrayLiteralTypeInference.js
index 9d27f4c561fa3..2a74ce98a0ca7 100644
--- a/tests/baselines/reference/arrayLiteralTypeInference.js
+++ b/tests/baselines/reference/arrayLiteralTypeInference.js
@@ -65,7 +65,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayLiterals.js b/tests/baselines/reference/arrayLiterals.js
index 0f2dc1f7e2ebf..a4950c2e1a48f 100644
--- a/tests/baselines/reference/arrayLiterals.js
+++ b/tests/baselines/reference/arrayLiterals.js
@@ -51,7 +51,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js
index b048aded77a6d..3119ba6399643 100644
--- a/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js
+++ b/tests/baselines/reference/arrayLiteralsWithRecursiveGenerics.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js
index 4f326443f931c..bac92650da16c 100644
--- a/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js
+++ b/tests/baselines/reference/arrayOfSubtypeIsAssignableToReadonlyArray.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/arrowFunctionContexts.js b/tests/baselines/reference/arrowFunctionContexts.js
index 7a80cd10d9c18..85c71de7aade5 100644
--- a/tests/baselines/reference/arrowFunctionContexts.js
+++ b/tests/baselines/reference/arrowFunctionContexts.js
@@ -109,7 +109,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assertionTypePredicates1.js b/tests/baselines/reference/assertionTypePredicates1.js
index dd591b729358c..b29fbf97e16b2 100644
--- a/tests/baselines/reference/assertionTypePredicates1.js
+++ b/tests/baselines/reference/assertionTypePredicates1.js
@@ -273,7 +273,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js
index 7c3cfb81b994f..8dcae436135b6 100644
--- a/tests/baselines/reference/assignmentCompatWithCallSignatures3.js
+++ b/tests/baselines/reference/assignmentCompatWithCallSignatures3.js
@@ -114,7 +114,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js
index 1782ca7cb0a0e..8456ac87630cb 100644
--- a/tests/baselines/reference/assignmentCompatWithCallSignatures4.js
+++ b/tests/baselines/reference/assignmentCompatWithCallSignatures4.js
@@ -113,7 +113,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js
index 097f6ac2dca22..211bb8e9c2ade 100644
--- a/tests/baselines/reference/assignmentCompatWithCallSignatures5.js
+++ b/tests/baselines/reference/assignmentCompatWithCallSignatures5.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js
index 740ed15c17c7d..c1118201faf7b 100644
--- a/tests/baselines/reference/assignmentCompatWithCallSignatures6.js
+++ b/tests/baselines/reference/assignmentCompatWithCallSignatures6.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js
index c529a6599cd05..00748cfebf913 100644
--- a/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js
+++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures3.js
@@ -114,7 +114,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js
index 8944c699cc898..edaca2e9f71a4 100644
--- a/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js
+++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures4.js
@@ -113,7 +113,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js
index ccad983de027b..3c9572dc5a508 100644
--- a/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js
+++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures5.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js
index 5c3f1ab68ebb5..428fa39631e4d 100644
--- a/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js
+++ b/tests/baselines/reference/assignmentCompatWithConstructSignatures6.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js
index ff38e3cbd0165..ee0d0df32dd68 100644
--- a/tests/baselines/reference/assignmentCompatWithNumericIndexer.js
+++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js
index ff92930c86302..856e97b7ed467 100644
--- a/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js
+++ b/tests/baselines/reference/assignmentCompatWithNumericIndexer3.js
@@ -55,7 +55,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js
index 60412c2abc90f..b3b2a00efb3d5 100644
--- a/tests/baselines/reference/assignmentCompatWithObjectMembers4.js
+++ b/tests/baselines/reference/assignmentCompatWithObjectMembers4.js
@@ -106,7 +106,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js
index 6eca91bf5c434..462f7048da4cf 100644
--- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js
+++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality.js
@@ -103,7 +103,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js
index 21d93a227794c..74a71b56ff16b 100644
--- a/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js
+++ b/tests/baselines/reference/assignmentCompatWithObjectMembersOptionality2.js
@@ -106,7 +106,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatWithStringIndexer.js b/tests/baselines/reference/assignmentCompatWithStringIndexer.js
index 0a4f06be0ea6a..636ea19372dad 100644
--- a/tests/baselines/reference/assignmentCompatWithStringIndexer.js
+++ b/tests/baselines/reference/assignmentCompatWithStringIndexer.js
@@ -68,7 +68,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentCompatability45.js b/tests/baselines/reference/assignmentCompatability45.js
index f712233976267..4c2bf39101798 100644
--- a/tests/baselines/reference/assignmentCompatability45.js
+++ b/tests/baselines/reference/assignmentCompatability45.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/assignmentLHSIsValue.js b/tests/baselines/reference/assignmentLHSIsValue.js
index 81506efa54a4f..aefa93eaad0d6 100644
--- a/tests/baselines/reference/assignmentLHSIsValue.js
+++ b/tests/baselines/reference/assignmentLHSIsValue.js
@@ -84,7 +84,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/asyncImportedPromise_es5.js b/tests/baselines/reference/asyncImportedPromise_es5.js
index c6841ddd8a6f1..31d8f808a2fca 100644
--- a/tests/baselines/reference/asyncImportedPromise_es5.js
+++ b/tests/baselines/reference/asyncImportedPromise_es5.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/autolift4.js b/tests/baselines/reference/autolift4.js
index afa4a1b0aee32..ff8dee383bba5 100644
--- a/tests/baselines/reference/autolift4.js
+++ b/tests/baselines/reference/autolift4.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseCheck.js b/tests/baselines/reference/baseCheck.js
index 5299d685971d5..b1435dc899355 100644
--- a/tests/baselines/reference/baseCheck.js
+++ b/tests/baselines/reference/baseCheck.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseClassImprovedMismatchErrors.js b/tests/baselines/reference/baseClassImprovedMismatchErrors.js
index 6ce02320797a8..aa3941ced2b82 100644
--- a/tests/baselines/reference/baseClassImprovedMismatchErrors.js
+++ b/tests/baselines/reference/baseClassImprovedMismatchErrors.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseConstraintOfDecorator.js b/tests/baselines/reference/baseConstraintOfDecorator.js
index 48a2eec64ff83..5cb48ae0afbdd 100644
--- a/tests/baselines/reference/baseConstraintOfDecorator.js
+++ b/tests/baselines/reference/baseConstraintOfDecorator.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseExpressionTypeParameters.js b/tests/baselines/reference/baseExpressionTypeParameters.js
index f8959445f1c2d..31e5f2cbb6ac3 100644
--- a/tests/baselines/reference/baseExpressionTypeParameters.js
+++ b/tests/baselines/reference/baseExpressionTypeParameters.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseIndexSignatureResolution.js b/tests/baselines/reference/baseIndexSignatureResolution.js
index a03ad13610d3a..6e1f4f7392525 100644
--- a/tests/baselines/reference/baseIndexSignatureResolution.js
+++ b/tests/baselines/reference/baseIndexSignatureResolution.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseTypeOrderChecking.js b/tests/baselines/reference/baseTypeOrderChecking.js
index 00abe8514d64b..8b4c17de7c2c6 100644
--- a/tests/baselines/reference/baseTypeOrderChecking.js
+++ b/tests/baselines/reference/baseTypeOrderChecking.js
@@ -50,7 +50,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js
index b891dadaa8dc5..564d7845c6953 100644
--- a/tests/baselines/reference/baseTypeWrappingInstantiationChain.js
+++ b/tests/baselines/reference/baseTypeWrappingInstantiationChain.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/bases.js b/tests/baselines/reference/bases.js
index 96f8aaca36b55..fc89512c91e68 100644
--- a/tests/baselines/reference/bases.js
+++ b/tests/baselines/reference/bases.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js
index d62c0769bfb25..5dbda40f2952c 100644
--- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js
+++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js
index f25d2bb5d6f2f..fb16d88b04604 100644
--- a/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js
+++ b/tests/baselines/reference/bestCommonTypeOfConditionalExpressions2.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/bestCommonTypeOfTuple2.js b/tests/baselines/reference/bestCommonTypeOfTuple2.js
index 5d440c14c46f8..f4205ba4c9209 100644
--- a/tests/baselines/reference/bestCommonTypeOfTuple2.js
+++ b/tests/baselines/reference/bestCommonTypeOfTuple2.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callChainWithSuper(target=es5).js b/tests/baselines/reference/callChainWithSuper(target=es5).js
index e3e759261c665..6e5100da60185 100644
--- a/tests/baselines/reference/callChainWithSuper(target=es5).js
+++ b/tests/baselines/reference/callChainWithSuper(target=es5).js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js
index dbd499c336ce0..7c981db483778 100644
--- a/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js
+++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance2.js
@@ -84,7 +84,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js
index 9fb5afc4a6b22..d9bae3992c472 100644
--- a/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js
+++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance3.js
@@ -129,7 +129,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js
index b805ebb772785..350545066edfe 100644
--- a/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js
+++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance4.js
@@ -64,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js
index c26f4527fb190..116d918d75b66 100644
--- a/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js
+++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance5.js
@@ -64,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js
index 2f57fcebd5396..c316100d53835 100644
--- a/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js
+++ b/tests/baselines/reference/callSignatureAssignabilityInInheritance6.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/callWithSpread.js b/tests/baselines/reference/callWithSpread.js
index 6bf603161d25c..1654e2fa5517b 100644
--- a/tests/baselines/reference/callWithSpread.js
+++ b/tests/baselines/reference/callWithSpread.js
@@ -72,7 +72,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js
index 36ec9c63d53a0..278b86ad2e509 100644
--- a/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js
+++ b/tests/baselines/reference/captureSuperPropertyAccessInSuperCall01.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/captureThisInSuperCall.js b/tests/baselines/reference/captureThisInSuperCall.js
index 7846e9e93a6e6..b19f2883f9457 100644
--- a/tests/baselines/reference/captureThisInSuperCall.js
+++ b/tests/baselines/reference/captureThisInSuperCall.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/castingTuple.js b/tests/baselines/reference/castingTuple.js
index 247bfff81bfdd..1826cabd96015 100644
--- a/tests/baselines/reference/castingTuple.js
+++ b/tests/baselines/reference/castingTuple.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/chainedAssignment3.js b/tests/baselines/reference/chainedAssignment3.js
index d08a5426f492f..4db9e3e1354f0 100644
--- a/tests/baselines/reference/chainedAssignment3.js
+++ b/tests/baselines/reference/chainedAssignment3.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js
index 76497857f99a0..1b7655562a241 100644
--- a/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js
+++ b/tests/baselines/reference/chainedCallsWithTypeParameterConstrainedToOtherTypeParameter.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkForObjectTooStrict.js b/tests/baselines/reference/checkForObjectTooStrict.js
index b25da57defacb..5c1cb8e13ca67 100644
--- a/tests/baselines/reference/checkForObjectTooStrict.js
+++ b/tests/baselines/reference/checkForObjectTooStrict.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js
index e39ef89f279b1..e0daa06c6ce88 100644
--- a/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js
+++ b/tests/baselines/reference/checkJsxChildrenCanBeTupleType.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty12.js b/tests/baselines/reference/checkJsxChildrenProperty12.js
index 5288eddbe8b90..25eecf40a31c7 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty12.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty12.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty13.js b/tests/baselines/reference/checkJsxChildrenProperty13.js
index 304266b096d0c..8900099e3d503 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty13.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty13.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty14.js b/tests/baselines/reference/checkJsxChildrenProperty14.js
index ea803d1134c64..69961033e9799 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty14.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty14.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty3.js b/tests/baselines/reference/checkJsxChildrenProperty3.js
index 6e5d5407baa78..21df84c873eb9 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty3.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty3.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty4.js b/tests/baselines/reference/checkJsxChildrenProperty4.js
index 1c11fbdb15b27..05e6030898461 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty4.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty4.js
@@ -59,7 +59,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty5.js b/tests/baselines/reference/checkJsxChildrenProperty5.js
index ab267092251f2..f7d3ef2abbd68 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty5.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty5.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty6.js b/tests/baselines/reference/checkJsxChildrenProperty6.js
index 2acd307d3ec36..3732b46533c10 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty6.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty6.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty7.js b/tests/baselines/reference/checkJsxChildrenProperty7.js
index ffecaeb8e9e19..f9763fdf79e1f 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty7.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty7.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxChildrenProperty8.js b/tests/baselines/reference/checkJsxChildrenProperty8.js
index 9241afeba1eb4..45babb53bda97 100644
--- a/tests/baselines/reference/checkJsxChildrenProperty8.js
+++ b/tests/baselines/reference/checkJsxChildrenProperty8.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxIntersectionElementPropsType.js b/tests/baselines/reference/checkJsxIntersectionElementPropsType.js
index f84c9b115cf89..99b58e66a4e0c 100644
--- a/tests/baselines/reference/checkJsxIntersectionElementPropsType.js
+++ b/tests/baselines/reference/checkJsxIntersectionElementPropsType.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js b/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js
index 2eca8424cd89c..9be59613190f1 100644
--- a/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js
+++ b/tests/baselines/reference/checkJsxSubtleSkipContextSensitiveBug.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js
index 9a49db90574c5..2724589e47533 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing1.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js
index 4f0af77ef35cb..17d2d7849ef92 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing2.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js
index 840ca110cac75..d9062537488db 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing3.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js
index 30fae193781c6..624cfa2006f85 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing4.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js
index 1a4e7012a0400..da3a22b97c0ee 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing5.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js
index 78dcd037c53d5..a40ca657e935d 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing6.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js
index 6ea9f8f789244..410694523e052 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing7.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js
index 08a0f865e8b1a..94ce343e2d1b4 100644
--- a/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js
+++ b/tests/baselines/reference/checkSuperCallBeforeThisAccessing8.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/circularConstraintYieldsAppropriateError.js b/tests/baselines/reference/circularConstraintYieldsAppropriateError.js
index aaa472ac8bf41..fb3a679b89036 100644
--- a/tests/baselines/reference/circularConstraintYieldsAppropriateError.js
+++ b/tests/baselines/reference/circularConstraintYieldsAppropriateError.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/circularImportAlias.js b/tests/baselines/reference/circularImportAlias.js
index fd4cae9193163..4199bc04f9516 100644
--- a/tests/baselines/reference/circularImportAlias.js
+++ b/tests/baselines/reference/circularImportAlias.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/circularTypeofWithFunctionModule.js b/tests/baselines/reference/circularTypeofWithFunctionModule.js
index 70ab88d2db492..903ee616e48e3 100644
--- a/tests/baselines/reference/circularTypeofWithFunctionModule.js
+++ b/tests/baselines/reference/circularTypeofWithFunctionModule.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractConstructorAssignability.js b/tests/baselines/reference/classAbstractConstructorAssignability.js
index 0a2500aef1448..9b76c3dca1420 100644
--- a/tests/baselines/reference/classAbstractConstructorAssignability.js
+++ b/tests/baselines/reference/classAbstractConstructorAssignability.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractCrashedOnce.js b/tests/baselines/reference/classAbstractCrashedOnce.js
index 9e907bcd76659..068d7d582b6b6 100644
--- a/tests/baselines/reference/classAbstractCrashedOnce.js
+++ b/tests/baselines/reference/classAbstractCrashedOnce.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractExtends.js b/tests/baselines/reference/classAbstractExtends.js
index ca6b87b2d20c5..bc5109f5555b0 100644
--- a/tests/baselines/reference/classAbstractExtends.js
+++ b/tests/baselines/reference/classAbstractExtends.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractFactoryFunction.js b/tests/baselines/reference/classAbstractFactoryFunction.js
index 6a224bc9d9cac..1ce241f050c4e 100644
--- a/tests/baselines/reference/classAbstractFactoryFunction.js
+++ b/tests/baselines/reference/classAbstractFactoryFunction.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractGeneric.js b/tests/baselines/reference/classAbstractGeneric.js
index 061feebd50d24..8af8c054779f7 100644
--- a/tests/baselines/reference/classAbstractGeneric.js
+++ b/tests/baselines/reference/classAbstractGeneric.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractInAModule.js b/tests/baselines/reference/classAbstractInAModule.js
index d92e43d770eda..0223c066b0188 100644
--- a/tests/baselines/reference/classAbstractInAModule.js
+++ b/tests/baselines/reference/classAbstractInAModule.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractInheritance1.js b/tests/baselines/reference/classAbstractInheritance1.js
index 7e7211374d647..df13594ab5f5e 100644
--- a/tests/baselines/reference/classAbstractInheritance1.js
+++ b/tests/baselines/reference/classAbstractInheritance1.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractInheritance2.js b/tests/baselines/reference/classAbstractInheritance2.js
index 3beb03e2dac72..a5202fe00c448 100644
--- a/tests/baselines/reference/classAbstractInheritance2.js
+++ b/tests/baselines/reference/classAbstractInheritance2.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractInstantiations1.js b/tests/baselines/reference/classAbstractInstantiations1.js
index 74a5fbf3706c7..c44648bee998f 100644
--- a/tests/baselines/reference/classAbstractInstantiations1.js
+++ b/tests/baselines/reference/classAbstractInstantiations1.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractInstantiations2.js b/tests/baselines/reference/classAbstractInstantiations2.js
index 5f257408b4ab8..b93f8475b3b10 100644
--- a/tests/baselines/reference/classAbstractInstantiations2.js
+++ b/tests/baselines/reference/classAbstractInstantiations2.js
@@ -65,7 +65,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractOverrideWithAbstract.js b/tests/baselines/reference/classAbstractOverrideWithAbstract.js
index 787cfd35578ef..b90a7ae7775ad 100644
--- a/tests/baselines/reference/classAbstractOverrideWithAbstract.js
+++ b/tests/baselines/reference/classAbstractOverrideWithAbstract.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractSuperCalls.js b/tests/baselines/reference/classAbstractSuperCalls.js
index b7a34d832ddb3..6352b88b31ed0 100644
--- a/tests/baselines/reference/classAbstractSuperCalls.js
+++ b/tests/baselines/reference/classAbstractSuperCalls.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js
index 6240d5cb2bc95..2e200ba0689c9 100644
--- a/tests/baselines/reference/classAbstractUsingAbstractMethod1.js
+++ b/tests/baselines/reference/classAbstractUsingAbstractMethod1.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js
index 765f5c2868321..190d0c14baba8 100644
--- a/tests/baselines/reference/classAbstractUsingAbstractMethods2.js
+++ b/tests/baselines/reference/classAbstractUsingAbstractMethods2.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classConstructorAccessibility2.js b/tests/baselines/reference/classConstructorAccessibility2.js
index ea347fc7287e6..64bf64da8e36d 100644
--- a/tests/baselines/reference/classConstructorAccessibility2.js
+++ b/tests/baselines/reference/classConstructorAccessibility2.js
@@ -59,7 +59,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classConstructorAccessibility4.js b/tests/baselines/reference/classConstructorAccessibility4.js
index d28ca291e8e67..84fa190858ee8 100644
--- a/tests/baselines/reference/classConstructorAccessibility4.js
+++ b/tests/baselines/reference/classConstructorAccessibility4.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classConstructorAccessibility5.js b/tests/baselines/reference/classConstructorAccessibility5.js
index fa422b3f8cfe7..542db173815b2 100644
--- a/tests/baselines/reference/classConstructorAccessibility5.js
+++ b/tests/baselines/reference/classConstructorAccessibility5.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classConstructorParametersAccessibility.js b/tests/baselines/reference/classConstructorParametersAccessibility.js
index 886607eb45d90..75604f10d33f0 100644
--- a/tests/baselines/reference/classConstructorParametersAccessibility.js
+++ b/tests/baselines/reference/classConstructorParametersAccessibility.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classConstructorParametersAccessibility2.js b/tests/baselines/reference/classConstructorParametersAccessibility2.js
index 466cba7785667..e67e4822b868d 100644
--- a/tests/baselines/reference/classConstructorParametersAccessibility2.js
+++ b/tests/baselines/reference/classConstructorParametersAccessibility2.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classConstructorParametersAccessibility3.js b/tests/baselines/reference/classConstructorParametersAccessibility3.js
index 7b20cb86b2b3d..c60736fe7c72b 100644
--- a/tests/baselines/reference/classConstructorParametersAccessibility3.js
+++ b/tests/baselines/reference/classConstructorParametersAccessibility3.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js
index 55edc20a79c6e..defa0c44f28d7 100644
--- a/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js
+++ b/tests/baselines/reference/classDeclarationMergedInModuleWithContinuation.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classDeclaredBeforeClassFactory.js b/tests/baselines/reference/classDeclaredBeforeClassFactory.js
index 7c205c327af48..c92666a31b1bb 100644
--- a/tests/baselines/reference/classDeclaredBeforeClassFactory.js
+++ b/tests/baselines/reference/classDeclaredBeforeClassFactory.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classDoesNotDependOnBaseTypes.js b/tests/baselines/reference/classDoesNotDependOnBaseTypes.js
index feeede8d4e5d3..235b63166bd0d 100644
--- a/tests/baselines/reference/classDoesNotDependOnBaseTypes.js
+++ b/tests/baselines/reference/classDoesNotDependOnBaseTypes.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExpression2.js b/tests/baselines/reference/classExpression2.js
index d7a834122592a..d468086f24350 100644
--- a/tests/baselines/reference/classExpression2.js
+++ b/tests/baselines/reference/classExpression2.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExpression3.js b/tests/baselines/reference/classExpression3.js
index 2607f2ee095a0..1ab707a3629dc 100644
--- a/tests/baselines/reference/classExpression3.js
+++ b/tests/baselines/reference/classExpression3.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExpressionExtendingAbstractClass.js b/tests/baselines/reference/classExpressionExtendingAbstractClass.js
index 1fcff3c135890..0db1a9d4b6bf1 100644
--- a/tests/baselines/reference/classExpressionExtendingAbstractClass.js
+++ b/tests/baselines/reference/classExpressionExtendingAbstractClass.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExpressionInClassStaticDeclarations.js b/tests/baselines/reference/classExpressionInClassStaticDeclarations.js
index 1ad67eb43cd46..31102d9369528 100644
--- a/tests/baselines/reference/classExpressionInClassStaticDeclarations.js
+++ b/tests/baselines/reference/classExpressionInClassStaticDeclarations.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingBuiltinType.js b/tests/baselines/reference/classExtendingBuiltinType.js
index c585ecf8caeb9..0384432e0e2d9 100644
--- a/tests/baselines/reference/classExtendingBuiltinType.js
+++ b/tests/baselines/reference/classExtendingBuiltinType.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingClass.js b/tests/baselines/reference/classExtendingClass.js
index 9c026a04476eb..45b3636a8deba 100644
--- a/tests/baselines/reference/classExtendingClass.js
+++ b/tests/baselines/reference/classExtendingClass.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingClassLikeType.js b/tests/baselines/reference/classExtendingClassLikeType.js
index c0f8c6840019e..6d1eacba805f1 100644
--- a/tests/baselines/reference/classExtendingClassLikeType.js
+++ b/tests/baselines/reference/classExtendingClassLikeType.js
@@ -72,7 +72,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingNonConstructor.js b/tests/baselines/reference/classExtendingNonConstructor.js
index de68949028dfd..1b8d640d9032c 100644
--- a/tests/baselines/reference/classExtendingNonConstructor.js
+++ b/tests/baselines/reference/classExtendingNonConstructor.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingNull.js b/tests/baselines/reference/classExtendingNull.js
index aedd7a992f14e..dd6d4a70b27b6 100644
--- a/tests/baselines/reference/classExtendingNull.js
+++ b/tests/baselines/reference/classExtendingNull.js
@@ -18,7 +18,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingOptionalChain.js b/tests/baselines/reference/classExtendingOptionalChain.js
index 3f6f68f480077..25d426c6f02c5 100644
--- a/tests/baselines/reference/classExtendingOptionalChain.js
+++ b/tests/baselines/reference/classExtendingOptionalChain.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingPrimitive.js b/tests/baselines/reference/classExtendingPrimitive.js
index 5afe16d1bd274..80c2dc8f50ea0 100644
--- a/tests/baselines/reference/classExtendingPrimitive.js
+++ b/tests/baselines/reference/classExtendingPrimitive.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingPrimitive2.js b/tests/baselines/reference/classExtendingPrimitive2.js
index 9e5c8348e9651..af15e2db25278 100644
--- a/tests/baselines/reference/classExtendingPrimitive2.js
+++ b/tests/baselines/reference/classExtendingPrimitive2.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingQualifiedName.js b/tests/baselines/reference/classExtendingQualifiedName.js
index 191ce656a107a..80dfae69f07e9 100644
--- a/tests/baselines/reference/classExtendingQualifiedName.js
+++ b/tests/baselines/reference/classExtendingQualifiedName.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendingQualifiedName2.js b/tests/baselines/reference/classExtendingQualifiedName2.js
index 66d4ba8c7d580..591bdaea96d08 100644
--- a/tests/baselines/reference/classExtendingQualifiedName2.js
+++ b/tests/baselines/reference/classExtendingQualifiedName2.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsAcrossFiles.js b/tests/baselines/reference/classExtendsAcrossFiles.js
index 50eb950b125a9..c3fd23252fabf 100644
--- a/tests/baselines/reference/classExtendsAcrossFiles.js
+++ b/tests/baselines/reference/classExtendsAcrossFiles.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -69,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js
index 50003502a1f6c..0e9ba0cd9d781 100644
--- a/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js
+++ b/tests/baselines/reference/classExtendsClauseClassMergedWithModuleNotReferingConstructor.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js
index 379e59a095b46..2064c046143d3 100644
--- a/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js
+++ b/tests/baselines/reference/classExtendsClauseClassNotReferringConstructor.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsEveryObjectType.js b/tests/baselines/reference/classExtendsEveryObjectType.js
index 0eabaa21468e6..e560b1ebc27a3 100644
--- a/tests/baselines/reference/classExtendsEveryObjectType.js
+++ b/tests/baselines/reference/classExtendsEveryObjectType.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsEveryObjectType2.js b/tests/baselines/reference/classExtendsEveryObjectType2.js
index c22c69b2a87d8..3693b6c9883ae 100644
--- a/tests/baselines/reference/classExtendsEveryObjectType2.js
+++ b/tests/baselines/reference/classExtendsEveryObjectType2.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsInterface.js b/tests/baselines/reference/classExtendsInterface.js
index d96104f8a4131..ac11262912bf4 100644
--- a/tests/baselines/reference/classExtendsInterface.js
+++ b/tests/baselines/reference/classExtendsInterface.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsInterfaceInExpression.js b/tests/baselines/reference/classExtendsInterfaceInExpression.js
index c98518e0fd278..2b4c362fdd3cd 100644
--- a/tests/baselines/reference/classExtendsInterfaceInExpression.js
+++ b/tests/baselines/reference/classExtendsInterfaceInExpression.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsInterfaceInModule.js b/tests/baselines/reference/classExtendsInterfaceInModule.js
index 35ce765bc5eaf..dccec107488e6 100644
--- a/tests/baselines/reference/classExtendsInterfaceInModule.js
+++ b/tests/baselines/reference/classExtendsInterfaceInModule.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsInterface_not.js b/tests/baselines/reference/classExtendsInterface_not.js
index b1fd61ab65b64..ba3156f506b62 100644
--- a/tests/baselines/reference/classExtendsInterface_not.js
+++ b/tests/baselines/reference/classExtendsInterface_not.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsItself.js b/tests/baselines/reference/classExtendsItself.js
index 05a8e72344d44..bdf2da9a94c18 100644
--- a/tests/baselines/reference/classExtendsItself.js
+++ b/tests/baselines/reference/classExtendsItself.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsItselfIndirectly.js b/tests/baselines/reference/classExtendsItselfIndirectly.js
index 17e5c2a927990..32e7fbcbf9193 100644
--- a/tests/baselines/reference/classExtendsItselfIndirectly.js
+++ b/tests/baselines/reference/classExtendsItselfIndirectly.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsItselfIndirectly2.js b/tests/baselines/reference/classExtendsItselfIndirectly2.js
index 61d05586baf82..f7fb219460f62 100644
--- a/tests/baselines/reference/classExtendsItselfIndirectly2.js
+++ b/tests/baselines/reference/classExtendsItselfIndirectly2.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsItselfIndirectly3.js b/tests/baselines/reference/classExtendsItselfIndirectly3.js
index d758317216a69..92363a9b37670 100644
--- a/tests/baselines/reference/classExtendsItselfIndirectly3.js
+++ b/tests/baselines/reference/classExtendsItselfIndirectly3.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -53,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -76,7 +98,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -99,7 +132,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -122,7 +166,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -145,7 +200,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsMultipleBaseClasses.js b/tests/baselines/reference/classExtendsMultipleBaseClasses.js
index 6a77de8e9f3f2..f6563cbbc82c3 100644
--- a/tests/baselines/reference/classExtendsMultipleBaseClasses.js
+++ b/tests/baselines/reference/classExtendsMultipleBaseClasses.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsNull.js b/tests/baselines/reference/classExtendsNull.js
index 23dd09feb430f..f3ff70f954eb6 100644
--- a/tests/baselines/reference/classExtendsNull.js
+++ b/tests/baselines/reference/classExtendsNull.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js
index a032e7d1b100f..f38dd5858f0fc 100644
--- a/tests/baselines/reference/classExtendsShadowedConstructorFunction.js
+++ b/tests/baselines/reference/classExtendsShadowedConstructorFunction.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtendsValidConstructorFunction.js b/tests/baselines/reference/classExtendsValidConstructorFunction.js
index 6ec9b809f0740..356fc9554fc9d 100644
--- a/tests/baselines/reference/classExtendsValidConstructorFunction.js
+++ b/tests/baselines/reference/classExtendsValidConstructorFunction.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classExtensionNameOutput.js b/tests/baselines/reference/classExtensionNameOutput.js
index 2139d9700cd40..3fcae05e1c3bd 100644
--- a/tests/baselines/reference/classExtensionNameOutput.js
+++ b/tests/baselines/reference/classExtensionNameOutput.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classHeritageWithTrailingSeparator.js b/tests/baselines/reference/classHeritageWithTrailingSeparator.js
index 1fcebb915b22d..ce9f7ecf64d6b 100644
--- a/tests/baselines/reference/classHeritageWithTrailingSeparator.js
+++ b/tests/baselines/reference/classHeritageWithTrailingSeparator.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classImplementsClass2.js b/tests/baselines/reference/classImplementsClass2.js
index 508fe307a34d2..7c420ea40cd91 100644
--- a/tests/baselines/reference/classImplementsClass2.js
+++ b/tests/baselines/reference/classImplementsClass2.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classImplementsClass3.js b/tests/baselines/reference/classImplementsClass3.js
index edb50c162bf8f..ff36a36c6ea8e 100644
--- a/tests/baselines/reference/classImplementsClass3.js
+++ b/tests/baselines/reference/classImplementsClass3.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classImplementsClass4.js b/tests/baselines/reference/classImplementsClass4.js
index 31b9029a1ad58..0545b2af462dd 100644
--- a/tests/baselines/reference/classImplementsClass4.js
+++ b/tests/baselines/reference/classImplementsClass4.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classImplementsClass5.js b/tests/baselines/reference/classImplementsClass5.js
index b50df57dfd866..dec43cf46a637 100644
--- a/tests/baselines/reference/classImplementsClass5.js
+++ b/tests/baselines/reference/classImplementsClass5.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classImplementsClass6.js b/tests/baselines/reference/classImplementsClass6.js
index 56783140c6218..1fd5a30204f42 100644
--- a/tests/baselines/reference/classImplementsClass6.js
+++ b/tests/baselines/reference/classImplementsClass6.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classIndexer3.js b/tests/baselines/reference/classIndexer3.js
index 420fdfed19e2d..7e48e708d8dd7 100644
--- a/tests/baselines/reference/classIndexer3.js
+++ b/tests/baselines/reference/classIndexer3.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classInheritence.js b/tests/baselines/reference/classInheritence.js
index 6a38d782707b5..82bef396ac1f9 100644
--- a/tests/baselines/reference/classInheritence.js
+++ b/tests/baselines/reference/classInheritence.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classIsSubtypeOfBaseType.js b/tests/baselines/reference/classIsSubtypeOfBaseType.js
index 168f14fe26adc..fc7e92f1bf72f 100644
--- a/tests/baselines/reference/classIsSubtypeOfBaseType.js
+++ b/tests/baselines/reference/classIsSubtypeOfBaseType.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js b/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js
index 7e24b8547dc25..b578bdb96387b 100644
--- a/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js
+++ b/tests/baselines/reference/classMergedWithInterfaceMultipleBasesNoError.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classOrder2.js b/tests/baselines/reference/classOrder2.js
index ee99c802d5e4c..833837a4e178d 100644
--- a/tests/baselines/reference/classOrder2.js
+++ b/tests/baselines/reference/classOrder2.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classOrderBug.js b/tests/baselines/reference/classOrderBug.js
index 49a1e82a5571f..cf44c6e513dca 100644
--- a/tests/baselines/reference/classOrderBug.js
+++ b/tests/baselines/reference/classOrderBug.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classSideInheritance1.js b/tests/baselines/reference/classSideInheritance1.js
index dd70b044e1849..f35d21e4264f8 100644
--- a/tests/baselines/reference/classSideInheritance1.js
+++ b/tests/baselines/reference/classSideInheritance1.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classSideInheritance2.js b/tests/baselines/reference/classSideInheritance2.js
index cb522da7e9e9e..9749355a1bc82 100644
--- a/tests/baselines/reference/classSideInheritance2.js
+++ b/tests/baselines/reference/classSideInheritance2.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classSideInheritance3.js b/tests/baselines/reference/classSideInheritance3.js
index 9d1877fd00f68..affc5b8f935df 100644
--- a/tests/baselines/reference/classSideInheritance3.js
+++ b/tests/baselines/reference/classSideInheritance3.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classStaticBlock5(target=es5).js b/tests/baselines/reference/classStaticBlock5(target=es5).js
index e12b8213aff5f..5527bdee1bfbc 100644
--- a/tests/baselines/reference/classStaticBlock5(target=es5).js
+++ b/tests/baselines/reference/classStaticBlock5(target=es5).js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classStaticBlock6.js b/tests/baselines/reference/classStaticBlock6.js
index 3ac5eccd62a10..be2d1eea20aab 100644
--- a/tests/baselines/reference/classStaticBlock6.js
+++ b/tests/baselines/reference/classStaticBlock6.js
@@ -88,7 +88,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classUpdateTests.js b/tests/baselines/reference/classUpdateTests.js
index 6e25d0c15a258..068ce725e5333 100644
--- a/tests/baselines/reference/classUpdateTests.js
+++ b/tests/baselines/reference/classUpdateTests.js
@@ -127,7 +127,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classUsedBeforeInitializedVariables.js b/tests/baselines/reference/classUsedBeforeInitializedVariables.js
index 343c8b0f6c127..2199d96b38a46 100644
--- a/tests/baselines/reference/classUsedBeforeInitializedVariables.js
+++ b/tests/baselines/reference/classUsedBeforeInitializedVariables.js
@@ -61,7 +61,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classWithBaseClassButNoConstructor.js b/tests/baselines/reference/classWithBaseClassButNoConstructor.js
index 11f9e34505c60..4d7308a8171cc 100644
--- a/tests/baselines/reference/classWithBaseClassButNoConstructor.js
+++ b/tests/baselines/reference/classWithBaseClassButNoConstructor.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classWithConstructors.js b/tests/baselines/reference/classWithConstructors.js
index e90df26fd0b2a..89646b59f29c9 100644
--- a/tests/baselines/reference/classWithConstructors.js
+++ b/tests/baselines/reference/classWithConstructors.js
@@ -63,7 +63,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classWithProtectedProperty.js b/tests/baselines/reference/classWithProtectedProperty.js
index a294814674e5b..8f4d1777e70f8 100644
--- a/tests/baselines/reference/classWithProtectedProperty.js
+++ b/tests/baselines/reference/classWithProtectedProperty.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classWithStaticMembers.js b/tests/baselines/reference/classWithStaticMembers.js
index 07fef3b5a41c6..1e0da3078e7e5 100644
--- a/tests/baselines/reference/classWithStaticMembers.js
+++ b/tests/baselines/reference/classWithStaticMembers.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/classdecl.js b/tests/baselines/reference/classdecl.js
index 9eea1a33f304e..75b2cd47c2b43 100644
--- a/tests/baselines/reference/classdecl.js
+++ b/tests/baselines/reference/classdecl.js
@@ -107,7 +107,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/cloduleGenericOnSelfMember.js b/tests/baselines/reference/cloduleGenericOnSelfMember.js
index aab360ad89816..4623da9bac2e7 100644
--- a/tests/baselines/reference/cloduleGenericOnSelfMember.js
+++ b/tests/baselines/reference/cloduleGenericOnSelfMember.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/clodulesDerivedClasses.js b/tests/baselines/reference/clodulesDerivedClasses.js
index 19e0bf79d4a86..26618feef2edd 100644
--- a/tests/baselines/reference/clodulesDerivedClasses.js
+++ b/tests/baselines/reference/clodulesDerivedClasses.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js
index d7d3521ccfd90..3fda2e9b765df 100644
--- a/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js
+++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInAccessors.js
@@ -53,7 +53,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js
index e130927e692a2..d5de85cde5d63 100644
--- a/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js
+++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInConstructor.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js
index 7d9cf89f6bdbd..ea0083a24aebb 100644
--- a/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js
+++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInMethod.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js b/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js
index 25cc686480202..9ce30704b73eb 100644
--- a/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js
+++ b/tests/baselines/reference/collisionSuperAndLocalFunctionInProperty.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js
index 2eb4f2ee53360..5acc6c9e75f18 100644
--- a/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js
+++ b/tests/baselines/reference/collisionSuperAndLocalVarInAccessors.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js
index dce9ba870407b..73d2c1355108a 100644
--- a/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js
+++ b/tests/baselines/reference/collisionSuperAndLocalVarInConstructor.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js
index 3fa48ab59e41d..f9cdb3cb960e0 100644
--- a/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js
+++ b/tests/baselines/reference/collisionSuperAndLocalVarInMethod.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js
index 8acb74135a8a9..399a06e0ef2b0 100644
--- a/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js
+++ b/tests/baselines/reference/collisionSuperAndLocalVarInProperty.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndNameResolution.js b/tests/baselines/reference/collisionSuperAndNameResolution.js
index 2a20870afbc79..b15505310c050 100644
--- a/tests/baselines/reference/collisionSuperAndNameResolution.js
+++ b/tests/baselines/reference/collisionSuperAndNameResolution.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndParameter.js b/tests/baselines/reference/collisionSuperAndParameter.js
index fc3705bbc3df2..4dffb973c74da 100644
--- a/tests/baselines/reference/collisionSuperAndParameter.js
+++ b/tests/baselines/reference/collisionSuperAndParameter.js
@@ -76,7 +76,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndParameter1.js b/tests/baselines/reference/collisionSuperAndParameter1.js
index b8cb57535d959..b220c50649e3e 100644
--- a/tests/baselines/reference/collisionSuperAndParameter1.js
+++ b/tests/baselines/reference/collisionSuperAndParameter1.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js
index e40c462d13310..394d846e6362a 100644
--- a/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js
+++ b/tests/baselines/reference/collisionSuperAndPropertyNameAsConstuctorParameter.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js
index 802b6e5a0388d..fe6c0c045e839 100644
--- a/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js
+++ b/tests/baselines/reference/collisionThisExpressionAndLocalVarWithSuperExperssion.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/commentsInheritance.js b/tests/baselines/reference/commentsInheritance.js
index 005acd6f69360..091405d570123 100644
--- a/tests/baselines/reference/commentsInheritance.js
+++ b/tests/baselines/reference/commentsInheritance.js
@@ -164,7 +164,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js
index 807041e4343dc..776ce776ce227 100644
--- a/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js
+++ b/tests/baselines/reference/comparisonOperatorWithIdenticalObjects.js
@@ -208,7 +208,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js
index c7cdb12670cb7..63c2cf955cfcb 100644
--- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnCallSignature.js
@@ -182,7 +182,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js
index 26e89ce584d01..c8c509fe1acb3 100644
--- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnConstructorSignature.js
@@ -182,7 +182,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js
index b4f3679bc2230..86be114a412e5 100644
--- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnIndexSignature.js
@@ -125,7 +125,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js
index 3a79857746475..d735783d9ccaa 100644
--- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedCallSignature.js
@@ -163,7 +163,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js
index 8859016045c1f..3e5e8d28fa98f 100644
--- a/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithNoRelationshipObjectsOnInstantiatedConstructorSignature.js
@@ -163,7 +163,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js
index aebe5467c1c42..7389dbdf6befc 100644
--- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnCallSignature.js
@@ -273,7 +273,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js
index 9bfc732583b07..a7ec82cb7bad4 100644
--- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnConstructorSignature.js
@@ -235,7 +235,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js
index d0d9d5a597a6a..694d8528e7e2d 100644
--- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnIndexSignature.js
@@ -121,7 +121,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js
index 24c995e634318..861c9af54abde 100644
--- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedCallSignature.js
@@ -178,7 +178,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js
index f07a0ecba8469..f2f0b04f15515 100644
--- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js
+++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnInstantiatedConstructorSignature.js
@@ -178,7 +178,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js
index c87b4423a120d..f6320d84b3e43 100644
--- a/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js
+++ b/tests/baselines/reference/comparisonOperatorWithSubtypeObjectOnProperty.js
@@ -92,7 +92,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/complexClassRelationships.js b/tests/baselines/reference/complexClassRelationships.js
index 0ddb1b1403652..880c439cb9ac6 100644
--- a/tests/baselines/reference/complexClassRelationships.js
+++ b/tests/baselines/reference/complexClassRelationships.js
@@ -61,7 +61,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js
index 38acb7edc8893..3a4275f79be0e 100644
--- a/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js
+++ b/tests/baselines/reference/complicatedGenericRecursiveBaseClassReference.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/compoundAssignmentLHSIsValue.js b/tests/baselines/reference/compoundAssignmentLHSIsValue.js
index 9f6f502a05ca5..67bbbb123ebae 100644
--- a/tests/baselines/reference/compoundAssignmentLHSIsValue.js
+++ b/tests/baselines/reference/compoundAssignmentLHSIsValue.js
@@ -136,7 +136,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js
index b6b07e6b08cd6..5b67891ce83e7 100644
--- a/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js
+++ b/tests/baselines/reference/compoundExponentiationAssignmentLHSIsValue.js
@@ -99,7 +99,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames24_ES5.js b/tests/baselines/reference/computedPropertyNames24_ES5.js
index 9149fb2b7f7da..7babba6b1fd7f 100644
--- a/tests/baselines/reference/computedPropertyNames24_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames24_ES5.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames25_ES5.js b/tests/baselines/reference/computedPropertyNames25_ES5.js
index b1fcee5d2093c..ea1ece2cd334f 100644
--- a/tests/baselines/reference/computedPropertyNames25_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames25_ES5.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames26_ES5.js b/tests/baselines/reference/computedPropertyNames26_ES5.js
index d11d3e62daf04..393f34bc192bd 100644
--- a/tests/baselines/reference/computedPropertyNames26_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames26_ES5.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames27_ES5.js b/tests/baselines/reference/computedPropertyNames27_ES5.js
index b211de70f6f4f..5d8adb22fc81c 100644
--- a/tests/baselines/reference/computedPropertyNames27_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames27_ES5.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames28_ES5.js b/tests/baselines/reference/computedPropertyNames28_ES5.js
index 2268c134780b6..5fdd4546e5ee9 100644
--- a/tests/baselines/reference/computedPropertyNames28_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames28_ES5.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames30_ES5.js b/tests/baselines/reference/computedPropertyNames30_ES5.js
index 77ee8645565cd..b17aef1311950 100644
--- a/tests/baselines/reference/computedPropertyNames30_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames30_ES5.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames31_ES5.js b/tests/baselines/reference/computedPropertyNames31_ES5.js
index 4fe7dbdf7ac7f..ac2dc4d06ff48 100644
--- a/tests/baselines/reference/computedPropertyNames31_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames31_ES5.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames43_ES5.js b/tests/baselines/reference/computedPropertyNames43_ES5.js
index 5a5ff015ebb0e..ae12657bcd1e5 100644
--- a/tests/baselines/reference/computedPropertyNames43_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames43_ES5.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames44_ES5.js b/tests/baselines/reference/computedPropertyNames44_ES5.js
index a0db5485d62b7..4b6c9576fec73 100644
--- a/tests/baselines/reference/computedPropertyNames44_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames44_ES5.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/computedPropertyNames45_ES5.js b/tests/baselines/reference/computedPropertyNames45_ES5.js
index 19b8fdacbcdfd..4967240c6c61b 100644
--- a/tests/baselines/reference/computedPropertyNames45_ES5.js
+++ b/tests/baselines/reference/computedPropertyNames45_ES5.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js
index 88b0cdc288f9e..aa40b2ea187e8 100644
--- a/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js
+++ b/tests/baselines/reference/conditionalOperatorWithIdenticalBCT.js
@@ -61,7 +61,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js
index 4f4e4a0795f9f..ac1f5ffb83477 100644
--- a/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js
+++ b/tests/baselines/reference/conditionalOperatorWithoutIdenticalBCT.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/conflictingTypeParameterSymbolTransfer.js b/tests/baselines/reference/conflictingTypeParameterSymbolTransfer.js
index 3c8cf6faeecfe..81f8271fbc5ae 100644
--- a/tests/baselines/reference/conflictingTypeParameterSymbolTransfer.js
+++ b/tests/baselines/reference/conflictingTypeParameterSymbolTransfer.js
@@ -50,7 +50,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constantOverloadFunction.js b/tests/baselines/reference/constantOverloadFunction.js
index ceee962c2883b..b5be2d3855670 100644
--- a/tests/baselines/reference/constantOverloadFunction.js
+++ b/tests/baselines/reference/constantOverloadFunction.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js
index 2cf8252bf7ea8..5c61fd27861bc 100644
--- a/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js
+++ b/tests/baselines/reference/constantOverloadFunctionNoSubtypeError.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js
index 25cd31bc3d9e0..bacb8bc51dd48 100644
--- a/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js
+++ b/tests/baselines/reference/constraintCheckInGenericBaseTypeReference.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js
index e85ec95d8af40..bd63f658e29da 100644
--- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js
+++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance2.js
@@ -84,7 +84,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js
index 17407ccf43f7a..a6d54e5a46af2 100644
--- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js
+++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance3.js
@@ -127,7 +127,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js
index b7b5bf9a195a0..a959dc69898d0 100644
--- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js
+++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance4.js
@@ -74,7 +74,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js
index ffd1d98a189f6..f531b743d74ba 100644
--- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js
+++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance5.js
@@ -64,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js
index 92255a8031888..932c1ff2eb58d 100644
--- a/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js
+++ b/tests/baselines/reference/constructSignatureAssignabilityInInheritance6.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorArgs.js b/tests/baselines/reference/constructorArgs.js
index ce0e1be76013f..f96f3c61ee303 100644
--- a/tests/baselines/reference/constructorArgs.js
+++ b/tests/baselines/reference/constructorArgs.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorDefaultValuesReferencingThis.js b/tests/baselines/reference/constructorDefaultValuesReferencingThis.js
index 87394c3841f34..7983972a462ec 100644
--- a/tests/baselines/reference/constructorDefaultValuesReferencingThis.js
+++ b/tests/baselines/reference/constructorDefaultValuesReferencingThis.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js
index e08402f915c9e..286d5f353d096 100644
--- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js
+++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js
index e98709608d1bb..707b4475cd0c6 100644
--- a/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js
+++ b/tests/baselines/reference/constructorFunctionTypeIsAssignableToBaseType2.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorHasPrototypeProperty.js b/tests/baselines/reference/constructorHasPrototypeProperty.js
index 0fa5760d87730..14c46459d69cd 100644
--- a/tests/baselines/reference/constructorHasPrototypeProperty.js
+++ b/tests/baselines/reference/constructorHasPrototypeProperty.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorOverloads2.js b/tests/baselines/reference/constructorOverloads2.js
index 2f3e3e281134d..bbca02b2f9400 100644
--- a/tests/baselines/reference/constructorOverloads2.js
+++ b/tests/baselines/reference/constructorOverloads2.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorOverloads3.js b/tests/baselines/reference/constructorOverloads3.js
index 1d51166ccd991..9602dfa0847fb 100644
--- a/tests/baselines/reference/constructorOverloads3.js
+++ b/tests/baselines/reference/constructorOverloads3.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorWithCapturedSuper.js b/tests/baselines/reference/constructorWithCapturedSuper.js
index daacc4419de48..fbcf48d4cfac7 100644
--- a/tests/baselines/reference/constructorWithCapturedSuper.js
+++ b/tests/baselines/reference/constructorWithCapturedSuper.js
@@ -66,7 +66,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js
index 1cf5c5bf38c1d..ea941185e5f11 100644
--- a/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js
+++ b/tests/baselines/reference/constructorWithIncompleteTypeAnnotation.js
@@ -293,7 +293,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/constructorWithSuperAndPrologue.es5.js b/tests/baselines/reference/constructorWithSuperAndPrologue.es5.js
index 123d1f1760599..9e9a24c8d1bc6 100644
--- a/tests/baselines/reference/constructorWithSuperAndPrologue.es5.js
+++ b/tests/baselines/reference/constructorWithSuperAndPrologue.es5.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/contextualTypingArrayOfLambdas.js b/tests/baselines/reference/contextualTypingArrayOfLambdas.js
index 39256c76aaf22..82c984a5af83e 100644
--- a/tests/baselines/reference/contextualTypingArrayOfLambdas.js
+++ b/tests/baselines/reference/contextualTypingArrayOfLambdas.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression.js b/tests/baselines/reference/contextualTypingOfConditionalExpression.js
index 27e8ef1928317..063ded11bbc56 100644
--- a/tests/baselines/reference/contextualTypingOfConditionalExpression.js
+++ b/tests/baselines/reference/contextualTypingOfConditionalExpression.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js
index 6ca611b840b9a..1a3400da3ca38 100644
--- a/tests/baselines/reference/contextualTypingOfConditionalExpression2.js
+++ b/tests/baselines/reference/contextualTypingOfConditionalExpression2.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/controlFlowSuperPropertyAccess.js b/tests/baselines/reference/controlFlowSuperPropertyAccess.js
index 419705abbfd04..bf2b791d1ee74 100644
--- a/tests/baselines/reference/controlFlowSuperPropertyAccess.js
+++ b/tests/baselines/reference/controlFlowSuperPropertyAccess.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js
index 0a26f54de1a45..34e9d29d8bf4f 100644
--- a/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js
+++ b/tests/baselines/reference/crashInsourcePropertyIsRelatableToTargetProperty.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileClassExtendsNull.js b/tests/baselines/reference/declFileClassExtendsNull.js
index 774e03f0435c3..af6cf6b5032ff 100644
--- a/tests/baselines/reference/declFileClassExtendsNull.js
+++ b/tests/baselines/reference/declFileClassExtendsNull.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js
index ab40c6094ce72..62e4dd0cb86d1 100644
--- a/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js
+++ b/tests/baselines/reference/declFileForFunctionTypeAsTypeParameter.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js
index c34dd07ab8533..7cd82ecece4a3 100644
--- a/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js
+++ b/tests/baselines/reference/declFileGenericClassWithGenericExtendedClass.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileGenericType.js b/tests/baselines/reference/declFileGenericType.js
index e3d6fec029517..d64da2956cd63 100644
--- a/tests/baselines/reference/declFileGenericType.js
+++ b/tests/baselines/reference/declFileGenericType.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileGenericType2.js b/tests/baselines/reference/declFileGenericType2.js
index f13b3bed145c0..2e1ae8f6ad332 100644
--- a/tests/baselines/reference/declFileGenericType2.js
+++ b/tests/baselines/reference/declFileGenericType2.js
@@ -55,7 +55,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js
index 4704ce9bf0af1..bdc6076561bc2 100644
--- a/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js
+++ b/tests/baselines/reference/declFileWithClassNameConflictingWithClassReferredByExtendsClause.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js
index 00ae333dfadd3..c211e9f45b881 100644
--- a/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js
+++ b/tests/baselines/reference/declFileWithExtendsClauseThatHasItsContainerNameConflict.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitClassInherritsAny.js b/tests/baselines/reference/declarationEmitClassInherritsAny.js
index 8c4103422b2e9..a8a4d6aa9d1e2 100644
--- a/tests/baselines/reference/declarationEmitClassInherritsAny.js
+++ b/tests/baselines/reference/declarationEmitClassInherritsAny.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js b/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js
index 9ac2030ef1623..aa33b19955ebb 100644
--- a/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js
+++ b/tests/baselines/reference/declarationEmitClassMixinLocalClassDeclaration.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends.js b/tests/baselines/reference/declarationEmitExpressionInExtends.js
index 9e1630b672502..56bebbaddeeee 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends2.js b/tests/baselines/reference/declarationEmitExpressionInExtends2.js
index e7ee7c34a4100..0e57902bd4e8f 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends2.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends2.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends3.js b/tests/baselines/reference/declarationEmitExpressionInExtends3.js
index c102652410aef..6a1c426235689 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends3.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends3.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends4.js b/tests/baselines/reference/declarationEmitExpressionInExtends4.js
index a5d57ceb73c95..7207bbcf19dff 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends4.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends4.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends5.js b/tests/baselines/reference/declarationEmitExpressionInExtends5.js
index 19659fdefec3f..9d6c16cf136d3 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends5.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends5.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends6.js b/tests/baselines/reference/declarationEmitExpressionInExtends6.js
index 6c21847ad5f54..d0f83ce53f23a 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends6.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends6.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitExpressionInExtends7.js b/tests/baselines/reference/declarationEmitExpressionInExtends7.js
index c7488b0a461ad..0a0d2423be3ca 100644
--- a/tests/baselines/reference/declarationEmitExpressionInExtends7.js
+++ b/tests/baselines/reference/declarationEmitExpressionInExtends7.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js b/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js
index 648c22ec1da8d..4ffd7b5587981 100644
--- a/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js
+++ b/tests/baselines/reference/declarationEmitForDefaultExportClassExtendingExpression01.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js b/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js
index 3e589f2f7a987..957317a581d38 100644
--- a/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js
+++ b/tests/baselines/reference/declarationEmitLocalClassDeclarationMixin.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitMixinPrivateProtected.js b/tests/baselines/reference/declarationEmitMixinPrivateProtected.js
index e1092f0cf24f7..7457e5627ee40 100644
--- a/tests/baselines/reference/declarationEmitMixinPrivateProtected.js
+++ b/tests/baselines/reference/declarationEmitMixinPrivateProtected.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -88,7 +99,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitNameConflicts3.js b/tests/baselines/reference/declarationEmitNameConflicts3.js
index 4720e548438ae..5900b6dca4102 100644
--- a/tests/baselines/reference/declarationEmitNameConflicts3.js
+++ b/tests/baselines/reference/declarationEmitNameConflicts3.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitPrivateNameCausesError.js b/tests/baselines/reference/declarationEmitPrivateNameCausesError.js
index 50bb73fb28809..b4194b164c4e8 100644
--- a/tests/baselines/reference/declarationEmitPrivateNameCausesError.js
+++ b/tests/baselines/reference/declarationEmitPrivateNameCausesError.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js b/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js
index 0de068df7c8d4..7bf3133ab13b7 100644
--- a/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js
+++ b/tests/baselines/reference/declarationEmitPrivateSymbolCausesVarDeclarationEmit2.js
@@ -51,7 +51,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitProtectedMembers.js b/tests/baselines/reference/declarationEmitProtectedMembers.js
index 9dd015afe0272..54252f1d9ec1b 100644
--- a/tests/baselines/reference/declarationEmitProtectedMembers.js
+++ b/tests/baselines/reference/declarationEmitProtectedMembers.js
@@ -63,7 +63,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitStringEnumUsedInNonlocalSpread.js b/tests/baselines/reference/declarationEmitStringEnumUsedInNonlocalSpread.js
index b2cce43877394..c398789ae3eab 100644
--- a/tests/baselines/reference/declarationEmitStringEnumUsedInNonlocalSpread.js
+++ b/tests/baselines/reference/declarationEmitStringEnumUsedInNonlocalSpread.js
@@ -61,7 +61,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitThisPredicates01.js b/tests/baselines/reference/declarationEmitThisPredicates01.js
index fa9715fdc3f8f..8becace724043 100644
--- a/tests/baselines/reference/declarationEmitThisPredicates01.js
+++ b/tests/baselines/reference/declarationEmitThisPredicates01.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js
index 93fa8707ebb1a..a9f64878f110e 100644
--- a/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js
+++ b/tests/baselines/reference/declarationEmitThisPredicatesWithPrivateName01.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationEmitTypeParameterNameReusedInOverloads.js b/tests/baselines/reference/declarationEmitTypeParameterNameReusedInOverloads.js
index 7cb7af37bd3a2..66ef23021c59b 100644
--- a/tests/baselines/reference/declarationEmitTypeParameterNameReusedInOverloads.js
+++ b/tests/baselines/reference/declarationEmitTypeParameterNameReusedInOverloads.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationNoDanglingGenerics.js b/tests/baselines/reference/declarationNoDanglingGenerics.js
index 006417922eaaa..66e147be84183 100644
--- a/tests/baselines/reference/declarationNoDanglingGenerics.js
+++ b/tests/baselines/reference/declarationNoDanglingGenerics.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js b/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js
index c243754710e70..e2f0acceb3638 100644
--- a/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js
+++ b/tests/baselines/reference/declarationsForFileShadowingGlobalNoError.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/declareDottedExtend.js b/tests/baselines/reference/declareDottedExtend.js
index d0e1ec59137fc..17eafd545fbad 100644
--- a/tests/baselines/reference/declareDottedExtend.js
+++ b/tests/baselines/reference/declareDottedExtend.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/decoratorOnClass9.js b/tests/baselines/reference/decoratorOnClass9.js
index 645ab366e1fba..84766ff340c13 100644
--- a/tests/baselines/reference/decoratorOnClass9.js
+++ b/tests/baselines/reference/decoratorOnClass9.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/decoratorOnClassConstructor2.js b/tests/baselines/reference/decoratorOnClassConstructor2.js
index 1eecf1428b635..0afa429210e32 100644
--- a/tests/baselines/reference/decoratorOnClassConstructor2.js
+++ b/tests/baselines/reference/decoratorOnClassConstructor2.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/decoratorOnClassConstructor3.js b/tests/baselines/reference/decoratorOnClassConstructor3.js
index e2271d1b7d136..4e6e4eb09ba11 100644
--- a/tests/baselines/reference/decoratorOnClassConstructor3.js
+++ b/tests/baselines/reference/decoratorOnClassConstructor3.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/decoratorOnClassConstructor4.js b/tests/baselines/reference/decoratorOnClassConstructor4.js
index a844c02e3fb5a..254dcd2f00b9f 100644
--- a/tests/baselines/reference/decoratorOnClassConstructor4.js
+++ b/tests/baselines/reference/decoratorOnClassConstructor4.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/decoratorOnClassMethod12.js b/tests/baselines/reference/decoratorOnClassMethod12.js
index 831be5471530c..248fcd567710d 100644
--- a/tests/baselines/reference/decoratorOnClassMethod12.js
+++ b/tests/baselines/reference/decoratorOnClassMethod12.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js b/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js
index 03897a6749ed4..8bf89a3de830e 100644
--- a/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js
+++ b/tests/baselines/reference/defaultPropsEmptyCurlyBecomesAnyForJs.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -66,7 +77,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/defineProperty(target=es5).js b/tests/baselines/reference/defineProperty(target=es5).js
index 6df924e66a672..8e572ce96b524 100644
--- a/tests/baselines/reference/defineProperty(target=es5).js
+++ b/tests/baselines/reference/defineProperty(target=es5).js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js
index dea83d414c0ea..11aa1c8f4e1dd 100644
--- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js
+++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map
index 591d33250101c..2538af95d6ff7 100644
--- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map
+++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.js.map
@@ -1,3 +1,3 @@
//// [derivedClassConstructorWithExplicitReturns01.js.map]
-{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO;QAAP,kBAAA,EAAA,OAAO;QACf,YAAA,MAAK,YAAC,CAAC,CAAC,SAAC;QAHb,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"}
-//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBDID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEModmFsdWUpIHsNCiAgICAgICAgdGhpcy5jUHJvcCA9IDEwOw0KICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgY1Byb3A6IHZhbHVlLA0KICAgICAgICAgICAgZm9vOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfTsNCiAgICB9DQogICAgQy5wcm90b3R5cGUuZm9vID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gInRoaXMgbmV2ZXIgZ2V0cyB1c2VkLiI7IH07DQogICAgcmV0dXJuIEM7DQp9KCkpOw0KdmFyIEQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgX19leHRlbmRzKEQsIF9zdXBlcik7DQogICAgZnVuY3Rpb24gRChhKSB7DQogICAgICAgIGlmIChhID09PSB2b2lkIDApIHsgYSA9IDEwMDsgfQ0KICAgICAgICB2YXIgX3RoaXMgPSBfc3VwZXIuY2FsbCh0aGlzLCBhKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5kUHJvcCA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9Ow0KICAgICAgICBpZiAoTWF0aC5yYW5kb20oKSA8IDAuNSkgew0KICAgICAgICAgICAgIllvdSB3aW4hIjsNCiAgICAgICAgICAgIHJldHVybiB7DQogICAgICAgICAgICAgICAgY1Byb3A6IDEsDQogICAgICAgICAgICAgICAgZFByb3A6IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9LA0KICAgICAgICAgICAgICAgIGZvbzogZnVuY3Rpb24gKCkgeyByZXR1cm4gIllvdSB3aW4hISEhISI7IH0NCiAgICAgICAgICAgIH07DQogICAgICAgIH0NCiAgICAgICAgZWxzZQ0KICAgICAgICAgICAgcmV0dXJuIG51bGw7DQogICAgfQ0KICAgIHJldHVybiBEOw0KfShDKSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1kZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTtJQUtJLFdBQVksS0FBYTtRQUp6QixVQUFLLEdBQUcsRUFBRSxDQUFDO1FBS1AsT0FBTztZQUNILEtBQUssRUFBRSxLQUFLO1lBQ1osR0FBRztnQkFDQyxPQUFPLDhCQUE4QixDQUFDO1lBQzFDLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQztJQVRELGVBQUcsR0FBSCxjQUFRLE9BQU8sdUJBQXVCLENBQUMsQ0FBQyxDQUFDO0lBVTdDLFFBQUM7QUFBRCxDQUFDLEFBYkQsSUFhQztBQUVEO0lBQWdCLHFCQUFDO0lBR2IsV0FBWSxDQUFPO1FBQVAsa0JBQUEsRUFBQSxPQUFPO1FBQ2YsWUFBQSxNQUFLLFlBQUMsQ0FBQyxDQUFDLFNBQUM7UUFIYixXQUFLLEdBQUcsY0FBTSxPQUFBLEtBQUksRUFBSixDQUFJLENBQUM7UUFLZixJQUFJLElBQUksQ0FBQyxNQUFNLEVBQUUsR0FBRyxHQUFHLEVBQUUsQ0FBQztZQUN0QixVQUFVLENBQUE7WUFDVixPQUFPO2dCQUNILEtBQUssRUFBRSxDQUFDO2dCQUNSLEtBQUssRUFBRSxjQUFNLE9BQUEsS0FBSSxFQUFKLENBQUk7Z0JBQ2pCLEdBQUcsZ0JBQUssT0FBTyxjQUFjLENBQUEsQ0FBQyxDQUFDO2FBQ2xDLENBQUM7UUFDTixDQUFDOztZQUVHLE9BQU8sSUFBSSxDQUFDO0lBQ3BCLENBQUM7SUFDTCxRQUFDO0FBQUQsQ0FBQyxBQWpCRCxDQUFnQixDQUFDLEdBaUJoQiJ9,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ==
+{"version":3,"file":"derivedClassConstructorWithExplicitReturns01.js","sourceRoot":"","sources":["derivedClassConstructorWithExplicitReturns01.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IAKI,WAAY,KAAa;QAJzB,UAAK,GAAG,EAAE,CAAC;QAKP,OAAO;YACH,KAAK,EAAE,KAAK;YACZ,GAAG;gBACC,OAAO,8BAA8B,CAAC;YAC1C,CAAC;SACJ,CAAA;IACL,CAAC;IATD,eAAG,GAAH,cAAQ,OAAO,uBAAuB,CAAC,CAAC,CAAC;IAU7C,QAAC;AAAD,CAAC,AAbD,IAaC;AAED;IAAgB,qBAAC;IAGb,WAAY,CAAO;QAAP,kBAAA,EAAA,OAAO;QACf,YAAA,MAAK,YAAC,CAAC,CAAC,SAAC;QAHb,WAAK,GAAG,cAAM,OAAA,KAAI,EAAJ,CAAI,CAAC;QAKf,IAAI,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC;YACtB,UAAU,CAAA;YACV,OAAO;gBACH,KAAK,EAAE,CAAC;gBACR,KAAK,EAAE,cAAM,OAAA,KAAI,EAAJ,CAAI;gBACjB,GAAG,gBAAK,OAAO,cAAc,CAAA,CAAC,CAAC;aAClC,CAAC;QACN,CAAC;;YAEG,OAAO,IAAI,CAAC;IACpB,CAAC;IACL,QAAC;AAAD,CAAC,AAjBD,CAAgB,CAAC,GAiBhB"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7DQogICAgICAgICAgICBpZiAoT2JqZWN0LmRlZmluZVByb3BlcnR5KSB7DQogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICJjb25zdHJ1Y3RvciIsIHsNCiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGQsDQogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLA0KICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwNCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlDQogICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgIHRoaXMuY29uc3RydWN0b3IgPSBkOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBDID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEModmFsdWUpIHsNCiAgICAgICAgdGhpcy5jUHJvcCA9IDEwOw0KICAgICAgICByZXR1cm4gew0KICAgICAgICAgICAgY1Byb3A6IHZhbHVlLA0KICAgICAgICAgICAgZm9vOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfTsNCiAgICB9DQogICAgQy5wcm90b3R5cGUuZm9vID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gInRoaXMgbmV2ZXIgZ2V0cyB1c2VkLiI7IH07DQogICAgcmV0dXJuIEM7DQp9KCkpOw0KdmFyIEQgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgX19leHRlbmRzKEQsIF9zdXBlcik7DQogICAgZnVuY3Rpb24gRChhKSB7DQogICAgICAgIGlmIChhID09PSB2b2lkIDApIHsgYSA9IDEwMDsgfQ0KICAgICAgICB2YXIgX3RoaXMgPSBfc3VwZXIuY2FsbCh0aGlzLCBhKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5kUHJvcCA9IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9Ow0KICAgICAgICBpZiAoTWF0aC5yYW5kb20oKSA8IDAuNSkgew0KICAgICAgICAgICAgIllvdSB3aW4hIjsNCiAgICAgICAgICAgIHJldHVybiB7DQogICAgICAgICAgICAgICAgY1Byb3A6IDEsDQogICAgICAgICAgICAgICAgZFByb3A6IGZ1bmN0aW9uICgpIHsgcmV0dXJuIF90aGlzOyB9LA0KICAgICAgICAgICAgICAgIGZvbzogZnVuY3Rpb24gKCkgeyByZXR1cm4gIllvdSB3aW4hISEhISI7IH0NCiAgICAgICAgICAgIH07DQogICAgICAgIH0NCiAgICAgICAgZWxzZQ0KICAgICAgICAgICAgcmV0dXJuIG51bGw7DQogICAgfQ0KICAgIHJldHVybiBEOw0KfShDKSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1kZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVyaXZlZENsYXNzQ29uc3RydWN0b3JXaXRoRXhwbGljaXRSZXR1cm5zMDEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJkZXJpdmVkQ2xhc3NDb25zdHJ1Y3RvcldpdGhFeHBsaWNpdFJldHVybnMwMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0lBS0ksV0FBWSxLQUFhO1FBSnpCLFVBQUssR0FBRyxFQUFFLENBQUM7UUFLUCxPQUFPO1lBQ0gsS0FBSyxFQUFFLEtBQUs7WUFDWixHQUFHO2dCQUNDLE9BQU8sOEJBQThCLENBQUM7WUFDMUMsQ0FBQztTQUNKLENBQUE7SUFDTCxDQUFDO0lBVEQsZUFBRyxHQUFILGNBQVEsT0FBTyx1QkFBdUIsQ0FBQyxDQUFDLENBQUM7SUFVN0MsUUFBQztBQUFELENBQUMsQUFiRCxJQWFDO0FBRUQ7SUFBZ0IscUJBQUM7SUFHYixXQUFZLENBQU87UUFBUCxrQkFBQSxFQUFBLE9BQU87UUFDZixZQUFBLE1BQUssWUFBQyxDQUFDLENBQUMsU0FBQztRQUhiLFdBQUssR0FBRyxjQUFNLE9BQUEsS0FBSSxFQUFKLENBQUksQ0FBQztRQUtmLElBQUksSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLEdBQUcsRUFBRSxDQUFDO1lBQ3RCLFVBQVUsQ0FBQTtZQUNWLE9BQU87Z0JBQ0gsS0FBSyxFQUFFLENBQUM7Z0JBQ1IsS0FBSyxFQUFFLGNBQU0sT0FBQSxLQUFJLEVBQUosQ0FBSTtnQkFDakIsR0FBRyxnQkFBSyxPQUFPLGNBQWMsQ0FBQSxDQUFDLENBQUM7YUFDbEMsQ0FBQztRQUNOLENBQUM7O1lBRUcsT0FBTyxJQUFJLENBQUM7SUFDcEIsQ0FBQztJQUNMLFFBQUM7QUFBRCxDQUFDLEFBakJELENBQWdCLENBQUMsR0FpQmhCIn0=,Y2xhc3MgQyB7CiAgICBjUHJvcCA9IDEwOwoKICAgIGZvbygpIHsgcmV0dXJuICJ0aGlzIG5ldmVyIGdldHMgdXNlZC4iOyB9CgogICAgY29uc3RydWN0b3IodmFsdWU6IG51bWJlcikgewogICAgICAgIHJldHVybiB7CiAgICAgICAgICAgIGNQcm9wOiB2YWx1ZSwKICAgICAgICAgICAgZm9vKCkgewogICAgICAgICAgICAgICAgcmV0dXJuICJ3ZWxsIHRoaXMgbG9va3Mga2luZGEgQy1pc2guIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KfQoKY2xhc3MgRCBleHRlbmRzIEMgewogICAgZFByb3AgPSAoKSA9PiB0aGlzOwoKICAgIGNvbnN0cnVjdG9yKGEgPSAxMDApIHsKICAgICAgICBzdXBlcihhKTsKCiAgICAgICAgaWYgKE1hdGgucmFuZG9tKCkgPCAwLjUpIHsKICAgICAgICAgICAgIllvdSB3aW4hIgogICAgICAgICAgICByZXR1cm4gewogICAgICAgICAgICAgICAgY1Byb3A6IDEsCiAgICAgICAgICAgICAgICBkUHJvcDogKCkgPT4gdGhpcywKICAgICAgICAgICAgICAgIGZvbygpIHsgcmV0dXJuICJZb3Ugd2luISEhISEiIH0KICAgICAgICAgICAgfTsKICAgICAgICB9CiAgICAgICAgZWxzZQogICAgICAgICAgICByZXR1cm4gbnVsbDsKICAgIH0KfQ==
diff --git a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt
index f51d0759aa4de..8d6c06891a4b9 100644
--- a/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt
+++ b/tests/baselines/reference/derivedClassConstructorWithExplicitReturns01.sourcemap.txt
@@ -19,7 +19,18 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
>>> if (typeof b !== "function" && b !== null)
>>> throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
>>> extendStatics(d, b);
->>> function __() { this.constructor = d; }
+>>> function __() {
+>>> if (Object.defineProperty) {
+>>> Object.defineProperty(this, "constructor", {
+>>> value: d,
+>>> writable: true,
+>>> enumerable: false,
+>>> configurable: true
+>>> });
+>>> } else {
+>>> this.constructor = d;
+>>> }
+>>> }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>> };
>>>})();
@@ -27,7 +38,7 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(16, 1) Source(1, 1) + SourceIndex(0)
+1 >Emitted(27, 1) Source(1, 1) + SourceIndex(0)
---
>>> function C(value) {
1->^^^^
@@ -42,9 +53,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
>
2 > constructor(
3 > value: number
-1->Emitted(17, 5) Source(6, 5) + SourceIndex(0)
-2 >Emitted(17, 16) Source(6, 17) + SourceIndex(0)
-3 >Emitted(17, 21) Source(6, 30) + SourceIndex(0)
+1->Emitted(28, 5) Source(6, 5) + SourceIndex(0)
+2 >Emitted(28, 16) Source(6, 17) + SourceIndex(0)
+3 >Emitted(28, 21) Source(6, 30) + SourceIndex(0)
---
>>> this.cProp = 10;
1->^^^^^^^^
@@ -57,11 +68,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
3 > =
4 > 10
5 > ;
-1->Emitted(18, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(18, 19) Source(2, 10) + SourceIndex(0)
-3 >Emitted(18, 22) Source(2, 13) + SourceIndex(0)
-4 >Emitted(18, 24) Source(2, 15) + SourceIndex(0)
-5 >Emitted(18, 25) Source(2, 16) + SourceIndex(0)
+1->Emitted(29, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(29, 19) Source(2, 10) + SourceIndex(0)
+3 >Emitted(29, 22) Source(2, 13) + SourceIndex(0)
+4 >Emitted(29, 24) Source(2, 15) + SourceIndex(0)
+5 >Emitted(29, 25) Source(2, 16) + SourceIndex(0)
---
>>> return {
1 >^^^^^^^^
@@ -74,8 +85,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
> constructor(value: number) {
>
2 > return
-1 >Emitted(19, 9) Source(7, 9) + SourceIndex(0)
-2 >Emitted(19, 16) Source(7, 16) + SourceIndex(0)
+1 >Emitted(30, 9) Source(7, 9) + SourceIndex(0)
+2 >Emitted(30, 16) Source(7, 16) + SourceIndex(0)
---
>>> cProp: value,
1->^^^^^^^^^^^^
@@ -88,10 +99,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
2 > cProp
3 > :
4 > value
-1->Emitted(20, 13) Source(8, 13) + SourceIndex(0)
-2 >Emitted(20, 18) Source(8, 18) + SourceIndex(0)
-3 >Emitted(20, 20) Source(8, 20) + SourceIndex(0)
-4 >Emitted(20, 25) Source(8, 25) + SourceIndex(0)
+1->Emitted(31, 13) Source(8, 13) + SourceIndex(0)
+2 >Emitted(31, 18) Source(8, 18) + SourceIndex(0)
+3 >Emitted(31, 20) Source(8, 20) + SourceIndex(0)
+4 >Emitted(31, 25) Source(8, 25) + SourceIndex(0)
---
>>> foo: function () {
1->^^^^^^^^^^^^
@@ -100,8 +111,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1->,
>
2 > foo
-1->Emitted(21, 13) Source(9, 13) + SourceIndex(0)
-2 >Emitted(21, 16) Source(9, 16) + SourceIndex(0)
+1->Emitted(32, 13) Source(9, 13) + SourceIndex(0)
+2 >Emitted(32, 16) Source(9, 16) + SourceIndex(0)
---
>>> return "well this looks kinda C-ish.";
1->^^^^^^^^^^^^^^^^
@@ -113,10 +124,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
2 > return
3 > "well this looks kinda C-ish."
4 > ;
-1->Emitted(22, 17) Source(10, 17) + SourceIndex(0)
-2 >Emitted(22, 24) Source(10, 24) + SourceIndex(0)
-3 >Emitted(22, 54) Source(10, 54) + SourceIndex(0)
-4 >Emitted(22, 55) Source(10, 55) + SourceIndex(0)
+1->Emitted(33, 17) Source(10, 17) + SourceIndex(0)
+2 >Emitted(33, 24) Source(10, 24) + SourceIndex(0)
+3 >Emitted(33, 54) Source(10, 54) + SourceIndex(0)
+4 >Emitted(33, 55) Source(10, 55) + SourceIndex(0)
---
>>> }
1 >^^^^^^^^^^^^
@@ -124,8 +135,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
>
2 > }
-1 >Emitted(23, 13) Source(11, 13) + SourceIndex(0)
-2 >Emitted(23, 14) Source(11, 14) + SourceIndex(0)
+1 >Emitted(34, 13) Source(11, 13) + SourceIndex(0)
+2 >Emitted(34, 14) Source(11, 14) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^
@@ -133,8 +144,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
> }
2 >
-1 >Emitted(24, 10) Source(12, 10) + SourceIndex(0)
-2 >Emitted(24, 11) Source(12, 10) + SourceIndex(0)
+1 >Emitted(35, 10) Source(12, 10) + SourceIndex(0)
+2 >Emitted(35, 11) Source(12, 10) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -143,8 +154,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
>
2 > }
-1 >Emitted(25, 5) Source(13, 5) + SourceIndex(0)
-2 >Emitted(25, 6) Source(13, 6) + SourceIndex(0)
+1 >Emitted(36, 5) Source(13, 5) + SourceIndex(0)
+2 >Emitted(36, 6) Source(13, 6) + SourceIndex(0)
---
>>> C.prototype.foo = function () { return "this never gets used."; };
1->^^^^
@@ -165,15 +176,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
7 > ;
8 >
9 > }
-1->Emitted(26, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(26, 20) Source(4, 8) + SourceIndex(0)
-3 >Emitted(26, 23) Source(4, 5) + SourceIndex(0)
-4 >Emitted(26, 37) Source(4, 13) + SourceIndex(0)
-5 >Emitted(26, 44) Source(4, 20) + SourceIndex(0)
-6 >Emitted(26, 67) Source(4, 43) + SourceIndex(0)
-7 >Emitted(26, 68) Source(4, 44) + SourceIndex(0)
-8 >Emitted(26, 69) Source(4, 45) + SourceIndex(0)
-9 >Emitted(26, 70) Source(4, 46) + SourceIndex(0)
+1->Emitted(37, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(37, 20) Source(4, 8) + SourceIndex(0)
+3 >Emitted(37, 23) Source(4, 5) + SourceIndex(0)
+4 >Emitted(37, 37) Source(4, 13) + SourceIndex(0)
+5 >Emitted(37, 44) Source(4, 20) + SourceIndex(0)
+6 >Emitted(37, 67) Source(4, 43) + SourceIndex(0)
+7 >Emitted(37, 68) Source(4, 44) + SourceIndex(0)
+8 >Emitted(37, 69) Source(4, 45) + SourceIndex(0)
+9 >Emitted(37, 70) Source(4, 46) + SourceIndex(0)
---
>>> return C;
1 >^^^^
@@ -190,8 +201,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
> }
>
2 > }
-1 >Emitted(27, 5) Source(14, 1) + SourceIndex(0)
-2 >Emitted(27, 13) Source(14, 2) + SourceIndex(0)
+1 >Emitted(38, 5) Source(14, 1) + SourceIndex(0)
+2 >Emitted(38, 13) Source(14, 2) + SourceIndex(0)
---
>>>}());
1 >
@@ -216,10 +227,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
> }
> }
> }
-1 >Emitted(28, 1) Source(14, 1) + SourceIndex(0)
-2 >Emitted(28, 2) Source(14, 2) + SourceIndex(0)
-3 >Emitted(28, 2) Source(1, 1) + SourceIndex(0)
-4 >Emitted(28, 6) Source(14, 2) + SourceIndex(0)
+1 >Emitted(39, 1) Source(14, 1) + SourceIndex(0)
+2 >Emitted(39, 2) Source(14, 2) + SourceIndex(0)
+3 >Emitted(39, 2) Source(1, 1) + SourceIndex(0)
+4 >Emitted(39, 6) Source(14, 2) + SourceIndex(0)
---
>>>var D = /** @class */ (function (_super) {
1->
@@ -227,15 +238,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1->
>
>
-1->Emitted(29, 1) Source(16, 1) + SourceIndex(0)
+1->Emitted(40, 1) Source(16, 1) + SourceIndex(0)
---
>>> __extends(D, _super);
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->class D extends
2 > C
-1->Emitted(30, 5) Source(16, 17) + SourceIndex(0)
-2 >Emitted(30, 26) Source(16, 18) + SourceIndex(0)
+1->Emitted(41, 5) Source(16, 17) + SourceIndex(0)
+2 >Emitted(41, 26) Source(16, 18) + SourceIndex(0)
---
>>> function D(a) {
1 >^^^^
@@ -248,9 +259,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
>
2 > constructor(
3 > a = 100
-1 >Emitted(31, 5) Source(19, 5) + SourceIndex(0)
-2 >Emitted(31, 16) Source(19, 17) + SourceIndex(0)
-3 >Emitted(31, 17) Source(19, 24) + SourceIndex(0)
+1 >Emitted(42, 5) Source(19, 5) + SourceIndex(0)
+2 >Emitted(42, 16) Source(19, 17) + SourceIndex(0)
+3 >Emitted(42, 17) Source(19, 24) + SourceIndex(0)
---
>>> if (a === void 0) { a = 100; }
1->^^^^^^^^
@@ -262,10 +273,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
2 >
3 >
4 > a = 100
-1->Emitted(32, 9) Source(19, 17) + SourceIndex(0)
-2 >Emitted(32, 27) Source(19, 17) + SourceIndex(0)
-3 >Emitted(32, 29) Source(19, 17) + SourceIndex(0)
-4 >Emitted(32, 36) Source(19, 24) + SourceIndex(0)
+1->Emitted(43, 9) Source(19, 17) + SourceIndex(0)
+2 >Emitted(43, 27) Source(19, 17) + SourceIndex(0)
+3 >Emitted(43, 29) Source(19, 17) + SourceIndex(0)
+4 >Emitted(43, 36) Source(19, 24) + SourceIndex(0)
---
>>> var _this = _super.call(this, a) || this;
1->^^^^^^^^
@@ -284,13 +295,13 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
5 > a
6 > )
7 > ;
-1->Emitted(33, 9) Source(20, 9) + SourceIndex(0)
-2 >Emitted(33, 21) Source(20, 9) + SourceIndex(0)
-3 >Emitted(33, 27) Source(20, 14) + SourceIndex(0)
-4 >Emitted(33, 39) Source(20, 15) + SourceIndex(0)
-5 >Emitted(33, 40) Source(20, 16) + SourceIndex(0)
-6 >Emitted(33, 41) Source(20, 17) + SourceIndex(0)
-7 >Emitted(33, 50) Source(20, 18) + SourceIndex(0)
+1->Emitted(44, 9) Source(20, 9) + SourceIndex(0)
+2 >Emitted(44, 21) Source(20, 9) + SourceIndex(0)
+3 >Emitted(44, 27) Source(20, 14) + SourceIndex(0)
+4 >Emitted(44, 39) Source(20, 15) + SourceIndex(0)
+5 >Emitted(44, 40) Source(20, 16) + SourceIndex(0)
+6 >Emitted(44, 41) Source(20, 17) + SourceIndex(0)
+7 >Emitted(44, 50) Source(20, 18) + SourceIndex(0)
---
>>> _this.dProp = function () { return _this; };
1->^^^^^^^^
@@ -311,15 +322,15 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
7 >
8 > this
9 > ;
-1->Emitted(34, 9) Source(17, 5) + SourceIndex(0)
-2 >Emitted(34, 20) Source(17, 10) + SourceIndex(0)
-3 >Emitted(34, 23) Source(17, 13) + SourceIndex(0)
-4 >Emitted(34, 37) Source(17, 19) + SourceIndex(0)
-5 >Emitted(34, 44) Source(17, 19) + SourceIndex(0)
-6 >Emitted(34, 49) Source(17, 23) + SourceIndex(0)
-7 >Emitted(34, 51) Source(17, 19) + SourceIndex(0)
-8 >Emitted(34, 52) Source(17, 23) + SourceIndex(0)
-9 >Emitted(34, 53) Source(17, 24) + SourceIndex(0)
+1->Emitted(45, 9) Source(17, 5) + SourceIndex(0)
+2 >Emitted(45, 20) Source(17, 10) + SourceIndex(0)
+3 >Emitted(45, 23) Source(17, 13) + SourceIndex(0)
+4 >Emitted(45, 37) Source(17, 19) + SourceIndex(0)
+5 >Emitted(45, 44) Source(17, 19) + SourceIndex(0)
+6 >Emitted(45, 49) Source(17, 23) + SourceIndex(0)
+7 >Emitted(45, 51) Source(17, 19) + SourceIndex(0)
+8 >Emitted(45, 52) Source(17, 23) + SourceIndex(0)
+9 >Emitted(45, 53) Source(17, 24) + SourceIndex(0)
---
>>> if (Math.random() < 0.5) {
1 >^^^^^^^^
@@ -347,16 +358,16 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
8 > 0.5
9 > )
10> {
-1 >Emitted(35, 9) Source(22, 9) + SourceIndex(0)
-2 >Emitted(35, 13) Source(22, 13) + SourceIndex(0)
-3 >Emitted(35, 17) Source(22, 17) + SourceIndex(0)
-4 >Emitted(35, 18) Source(22, 18) + SourceIndex(0)
-5 >Emitted(35, 24) Source(22, 24) + SourceIndex(0)
-6 >Emitted(35, 26) Source(22, 26) + SourceIndex(0)
-7 >Emitted(35, 29) Source(22, 29) + SourceIndex(0)
-8 >Emitted(35, 32) Source(22, 32) + SourceIndex(0)
-9 >Emitted(35, 34) Source(22, 34) + SourceIndex(0)
-10>Emitted(35, 35) Source(22, 35) + SourceIndex(0)
+1 >Emitted(46, 9) Source(22, 9) + SourceIndex(0)
+2 >Emitted(46, 13) Source(22, 13) + SourceIndex(0)
+3 >Emitted(46, 17) Source(22, 17) + SourceIndex(0)
+4 >Emitted(46, 18) Source(22, 18) + SourceIndex(0)
+5 >Emitted(46, 24) Source(22, 24) + SourceIndex(0)
+6 >Emitted(46, 26) Source(22, 26) + SourceIndex(0)
+7 >Emitted(46, 29) Source(22, 29) + SourceIndex(0)
+8 >Emitted(46, 32) Source(22, 32) + SourceIndex(0)
+9 >Emitted(46, 34) Source(22, 34) + SourceIndex(0)
+10>Emitted(46, 35) Source(22, 35) + SourceIndex(0)
---
>>> "You win!";
1 >^^^^^^^^^^^^
@@ -366,9 +377,9 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
>
2 > "You win!"
3 >
-1 >Emitted(36, 13) Source(23, 13) + SourceIndex(0)
-2 >Emitted(36, 23) Source(23, 23) + SourceIndex(0)
-3 >Emitted(36, 24) Source(23, 23) + SourceIndex(0)
+1 >Emitted(47, 13) Source(23, 13) + SourceIndex(0)
+2 >Emitted(47, 23) Source(23, 23) + SourceIndex(0)
+3 >Emitted(47, 24) Source(23, 23) + SourceIndex(0)
---
>>> return {
1 >^^^^^^^^^^^^
@@ -377,8 +388,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
>
2 > return
-1 >Emitted(37, 13) Source(24, 13) + SourceIndex(0)
-2 >Emitted(37, 20) Source(24, 20) + SourceIndex(0)
+1 >Emitted(48, 13) Source(24, 13) + SourceIndex(0)
+2 >Emitted(48, 20) Source(24, 20) + SourceIndex(0)
---
>>> cProp: 1,
1->^^^^^^^^^^^^^^^^
@@ -391,10 +402,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
2 > cProp
3 > :
4 > 1
-1->Emitted(38, 17) Source(25, 17) + SourceIndex(0)
-2 >Emitted(38, 22) Source(25, 22) + SourceIndex(0)
-3 >Emitted(38, 24) Source(25, 24) + SourceIndex(0)
-4 >Emitted(38, 25) Source(25, 25) + SourceIndex(0)
+1->Emitted(49, 17) Source(25, 17) + SourceIndex(0)
+2 >Emitted(49, 22) Source(25, 22) + SourceIndex(0)
+3 >Emitted(49, 24) Source(25, 24) + SourceIndex(0)
+4 >Emitted(49, 25) Source(25, 25) + SourceIndex(0)
---
>>> dProp: function () { return _this; },
1->^^^^^^^^^^^^^^^^
@@ -415,14 +426,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
6 > this
7 >
8 > this
-1->Emitted(39, 17) Source(26, 17) + SourceIndex(0)
-2 >Emitted(39, 22) Source(26, 22) + SourceIndex(0)
-3 >Emitted(39, 24) Source(26, 24) + SourceIndex(0)
-4 >Emitted(39, 38) Source(26, 30) + SourceIndex(0)
-5 >Emitted(39, 45) Source(26, 30) + SourceIndex(0)
-6 >Emitted(39, 50) Source(26, 34) + SourceIndex(0)
-7 >Emitted(39, 52) Source(26, 30) + SourceIndex(0)
-8 >Emitted(39, 53) Source(26, 34) + SourceIndex(0)
+1->Emitted(50, 17) Source(26, 17) + SourceIndex(0)
+2 >Emitted(50, 22) Source(26, 22) + SourceIndex(0)
+3 >Emitted(50, 24) Source(26, 24) + SourceIndex(0)
+4 >Emitted(50, 38) Source(26, 30) + SourceIndex(0)
+5 >Emitted(50, 45) Source(26, 30) + SourceIndex(0)
+6 >Emitted(50, 50) Source(26, 34) + SourceIndex(0)
+7 >Emitted(50, 52) Source(26, 30) + SourceIndex(0)
+8 >Emitted(50, 53) Source(26, 34) + SourceIndex(0)
---
>>> foo: function () { return "You win!!!!!"; }
1->^^^^^^^^^^^^^^^^
@@ -442,14 +453,14 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
6 >
7 >
8 > }
-1->Emitted(40, 17) Source(27, 17) + SourceIndex(0)
-2 >Emitted(40, 20) Source(27, 20) + SourceIndex(0)
-3 >Emitted(40, 36) Source(27, 25) + SourceIndex(0)
-4 >Emitted(40, 43) Source(27, 32) + SourceIndex(0)
-5 >Emitted(40, 57) Source(27, 46) + SourceIndex(0)
-6 >Emitted(40, 58) Source(27, 46) + SourceIndex(0)
-7 >Emitted(40, 59) Source(27, 47) + SourceIndex(0)
-8 >Emitted(40, 60) Source(27, 48) + SourceIndex(0)
+1->Emitted(51, 17) Source(27, 17) + SourceIndex(0)
+2 >Emitted(51, 20) Source(27, 20) + SourceIndex(0)
+3 >Emitted(51, 36) Source(27, 25) + SourceIndex(0)
+4 >Emitted(51, 43) Source(27, 32) + SourceIndex(0)
+5 >Emitted(51, 57) Source(27, 46) + SourceIndex(0)
+6 >Emitted(51, 58) Source(27, 46) + SourceIndex(0)
+7 >Emitted(51, 59) Source(27, 47) + SourceIndex(0)
+8 >Emitted(51, 60) Source(27, 48) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^
@@ -457,8 +468,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
> }
2 > ;
-1 >Emitted(41, 14) Source(28, 14) + SourceIndex(0)
-2 >Emitted(41, 15) Source(28, 15) + SourceIndex(0)
+1 >Emitted(52, 14) Source(28, 14) + SourceIndex(0)
+2 >Emitted(52, 15) Source(28, 15) + SourceIndex(0)
---
>>> }
1 >^^^^^^^^
@@ -467,8 +478,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
>
2 > }
-1 >Emitted(42, 9) Source(29, 9) + SourceIndex(0)
-2 >Emitted(42, 10) Source(29, 10) + SourceIndex(0)
+1 >Emitted(53, 9) Source(29, 9) + SourceIndex(0)
+2 >Emitted(53, 10) Source(29, 10) + SourceIndex(0)
---
>>> else
>>> return null;
@@ -482,10 +493,10 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
2 > return
3 > null
4 > ;
-1->Emitted(44, 13) Source(31, 13) + SourceIndex(0)
-2 >Emitted(44, 20) Source(31, 20) + SourceIndex(0)
-3 >Emitted(44, 24) Source(31, 24) + SourceIndex(0)
-4 >Emitted(44, 25) Source(31, 25) + SourceIndex(0)
+1->Emitted(55, 13) Source(31, 13) + SourceIndex(0)
+2 >Emitted(55, 20) Source(31, 20) + SourceIndex(0)
+3 >Emitted(55, 24) Source(31, 24) + SourceIndex(0)
+4 >Emitted(55, 25) Source(31, 25) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -494,8 +505,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1 >
>
2 > }
-1 >Emitted(45, 5) Source(32, 5) + SourceIndex(0)
-2 >Emitted(45, 6) Source(32, 6) + SourceIndex(0)
+1 >Emitted(56, 5) Source(32, 5) + SourceIndex(0)
+2 >Emitted(56, 6) Source(32, 6) + SourceIndex(0)
---
>>> return D;
1->^^^^
@@ -503,8 +514,8 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
1->
>
2 > }
-1->Emitted(46, 5) Source(33, 1) + SourceIndex(0)
-2 >Emitted(46, 13) Source(33, 2) + SourceIndex(0)
+1->Emitted(57, 5) Source(33, 1) + SourceIndex(0)
+2 >Emitted(57, 13) Source(33, 2) + SourceIndex(0)
---
>>>}(C));
1 >
@@ -537,11 +548,11 @@ sourceFile:derivedClassConstructorWithExplicitReturns01.ts
> return null;
> }
> }
-1 >Emitted(47, 1) Source(33, 1) + SourceIndex(0)
-2 >Emitted(47, 2) Source(33, 2) + SourceIndex(0)
-3 >Emitted(47, 2) Source(16, 1) + SourceIndex(0)
-4 >Emitted(47, 3) Source(16, 17) + SourceIndex(0)
-5 >Emitted(47, 4) Source(16, 18) + SourceIndex(0)
-6 >Emitted(47, 7) Source(33, 2) + SourceIndex(0)
+1 >Emitted(58, 1) Source(33, 1) + SourceIndex(0)
+2 >Emitted(58, 2) Source(33, 2) + SourceIndex(0)
+3 >Emitted(58, 2) Source(16, 1) + SourceIndex(0)
+4 >Emitted(58, 3) Source(16, 17) + SourceIndex(0)
+5 >Emitted(58, 4) Source(16, 18) + SourceIndex(0)
+6 >Emitted(58, 7) Source(33, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=derivedClassConstructorWithExplicitReturns01.js.map
\ No newline at end of file
diff --git a/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js b/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js
index 0953788b1d4ba..be6d908c16393 100644
--- a/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js
+++ b/tests/baselines/reference/derivedClassConstructorWithoutSuperCall.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js
index 72df2c4fb3349..a43419f39d2f0 100644
--- a/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js
+++ b/tests/baselines/reference/derivedClassFunctionOverridesBaseClassAccessor.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js
index ce057d8ae5215..828a73c0943d1 100644
--- a/tests/baselines/reference/derivedClassIncludesInheritedMembers.js
+++ b/tests/baselines/reference/derivedClassIncludesInheritedMembers.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js
index 81ca7159c1c15..2548bb8211021 100644
--- a/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js
+++ b/tests/baselines/reference/derivedClassOverridesIndexersWithAssignmentCompatibility.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js
index 6055e92896c1f..b4920e1617198 100644
--- a/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js
+++ b/tests/baselines/reference/derivedClassOverridesPrivateFunction1.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesPrivates.js b/tests/baselines/reference/derivedClassOverridesPrivates.js
index 5cd757f31fe24..77d5731560e73 100644
--- a/tests/baselines/reference/derivedClassOverridesPrivates.js
+++ b/tests/baselines/reference/derivedClassOverridesPrivates.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js
index f127264c581c8..79bb6f698ca84 100644
--- a/tests/baselines/reference/derivedClassOverridesProtectedMembers.js
+++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js
index d9934123144a2..b087f3321b16e 100644
--- a/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js
+++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers2.js
@@ -77,7 +77,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js
index 35114f3413951..7e0430add5ca4 100644
--- a/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js
+++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers3.js
@@ -84,7 +84,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js
index 3d20f3b1867e0..eebd74716a9b8 100644
--- a/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js
+++ b/tests/baselines/reference/derivedClassOverridesProtectedMembers4.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesPublicMembers.js b/tests/baselines/reference/derivedClassOverridesPublicMembers.js
index 6bb6d08a6beb6..6b7c92822e34a 100644
--- a/tests/baselines/reference/derivedClassOverridesPublicMembers.js
+++ b/tests/baselines/reference/derivedClassOverridesPublicMembers.js
@@ -76,7 +76,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js
index b8395e5ec796d..ca16b41901ee7 100644
--- a/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js
+++ b/tests/baselines/reference/derivedClassOverridesWithoutSubtype.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassParameterProperties.js b/tests/baselines/reference/derivedClassParameterProperties.js
index 0c6bc13af140d..f03c8bed56ab1 100644
--- a/tests/baselines/reference/derivedClassParameterProperties.js
+++ b/tests/baselines/reference/derivedClassParameterProperties.js
@@ -109,7 +109,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js
index 8b95f4a7c58d5..32d2b78338c76 100644
--- a/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js
+++ b/tests/baselines/reference/derivedClassSuperCallsInNonConstructorMembers.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js
index f64c8a7c62a9c..b7bcde63dc81e 100644
--- a/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js
+++ b/tests/baselines/reference/derivedClassSuperCallsWithThisArg.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassSuperProperties.js b/tests/baselines/reference/derivedClassSuperProperties.js
index 7a2f83b3f0108..faf8fc77f89ee 100644
--- a/tests/baselines/reference/derivedClassSuperProperties.js
+++ b/tests/baselines/reference/derivedClassSuperProperties.js
@@ -415,7 +415,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassSuperStatementPosition.js b/tests/baselines/reference/derivedClassSuperStatementPosition.js
index dcbfd4dd78bea..3962a382ba145 100644
--- a/tests/baselines/reference/derivedClassSuperStatementPosition.js
+++ b/tests/baselines/reference/derivedClassSuperStatementPosition.js
@@ -110,7 +110,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassTransitivity.js b/tests/baselines/reference/derivedClassTransitivity.js
index d2de43fd1912b..acffc9ae8b08d 100644
--- a/tests/baselines/reference/derivedClassTransitivity.js
+++ b/tests/baselines/reference/derivedClassTransitivity.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassTransitivity2.js b/tests/baselines/reference/derivedClassTransitivity2.js
index 2ccba211a6748..34a5eda4039cf 100644
--- a/tests/baselines/reference/derivedClassTransitivity2.js
+++ b/tests/baselines/reference/derivedClassTransitivity2.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassTransitivity3.js b/tests/baselines/reference/derivedClassTransitivity3.js
index cd6f21e786426..4beed8cdc651a 100644
--- a/tests/baselines/reference/derivedClassTransitivity3.js
+++ b/tests/baselines/reference/derivedClassTransitivity3.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassTransitivity4.js b/tests/baselines/reference/derivedClassTransitivity4.js
index d6df84bd5fc4f..93e9330e7e521 100644
--- a/tests/baselines/reference/derivedClassTransitivity4.js
+++ b/tests/baselines/reference/derivedClassTransitivity4.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithAny.js b/tests/baselines/reference/derivedClassWithAny.js
index edb9651799b88..1c6dae6bad600 100644
--- a/tests/baselines/reference/derivedClassWithAny.js
+++ b/tests/baselines/reference/derivedClassWithAny.js
@@ -73,7 +73,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js
index 2c653e7a6f0dc..977ca62175a9f 100644
--- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js
+++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingProtectedInstance.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js
index bb508d77b9a0e..9c532f0712d22 100644
--- a/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js
+++ b/tests/baselines/reference/derivedClassWithPrivateInstanceShadowingPublicInstance.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js
index 2a58a105c74c1..3614754c21c05 100644
--- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js
+++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingProtectedStatic.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js
index 4d9fd225099d2..96827fa49cb1e 100644
--- a/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js
+++ b/tests/baselines/reference/derivedClassWithPrivateStaticShadowingPublicStatic.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js
index e607e16c38677..f0cd94f76c572 100644
--- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js
+++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js
index 18b8a203a7da0..6cdd34ec0d81b 100644
--- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js
+++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor2.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js b/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js
index 5b5dc774d28b7..d1752c2a20d36 100644
--- a/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js
+++ b/tests/baselines/reference/derivedClassWithoutExplicitConstructor3.js
@@ -61,7 +61,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedClasses.js b/tests/baselines/reference/derivedClasses.js
index 59929ea72def9..8770a85db9614 100644
--- a/tests/baselines/reference/derivedClasses.js
+++ b/tests/baselines/reference/derivedClasses.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedGenericClassWithAny.js b/tests/baselines/reference/derivedGenericClassWithAny.js
index 464ff4514e822..7fa85ecc1284f 100644
--- a/tests/baselines/reference/derivedGenericClassWithAny.js
+++ b/tests/baselines/reference/derivedGenericClassWithAny.js
@@ -56,7 +56,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js
index a0e47878cd701..3dda0d0b2c9f7 100644
--- a/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js
+++ b/tests/baselines/reference/derivedTypeAccessesHiddenBaseCallViaSuperPropertyAccess.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js
index 0766673843d56..d69926ae2a325 100644
--- a/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js
+++ b/tests/baselines/reference/derivedTypeDoesNotRequireExtendsClause.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js b/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js
index 9547734ee5c5d..33d12072a35f2 100644
--- a/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js
+++ b/tests/baselines/reference/derivedUninitializedPropertyDeclaration.js
@@ -97,7 +97,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/destructuringParameterDeclaration5.js b/tests/baselines/reference/destructuringParameterDeclaration5.js
index fdd45d220a59c..347a38ad3856c 100644
--- a/tests/baselines/reference/destructuringParameterDeclaration5.js
+++ b/tests/baselines/reference/destructuringParameterDeclaration5.js
@@ -65,7 +65,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js b/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js
index 0b93164b256e0..48cafafa1c849 100644
--- a/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js
+++ b/tests/baselines/reference/doubleMixinConditionalTypeBaseClassWorks.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/duplicateErrorClassExpression.js b/tests/baselines/reference/duplicateErrorClassExpression.js
index 7b1f341d23449..0db1d9ae4393f 100644
--- a/tests/baselines/reference/duplicateErrorClassExpression.js
+++ b/tests/baselines/reference/duplicateErrorClassExpression.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitBundleWithPrologueDirectives1.js b/tests/baselines/reference/emitBundleWithPrologueDirectives1.js
index c327e92784218..5cd59fa104e9e 100644
--- a/tests/baselines/reference/emitBundleWithPrologueDirectives1.js
+++ b/tests/baselines/reference/emitBundleWithPrologueDirectives1.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitBundleWithShebang1.js b/tests/baselines/reference/emitBundleWithShebang1.js
index cd8c32fec9fda..bcebf1b034c02 100644
--- a/tests/baselines/reference/emitBundleWithShebang1.js
+++ b/tests/baselines/reference/emitBundleWithShebang1.js
@@ -18,7 +18,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitBundleWithShebang2.js b/tests/baselines/reference/emitBundleWithShebang2.js
index 98310ca1bb4ce..d1fe720612ae3 100644
--- a/tests/baselines/reference/emitBundleWithShebang2.js
+++ b/tests/baselines/reference/emitBundleWithShebang2.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js
index a09d1ee60bd72..ffed92d6106bb 100644
--- a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js
+++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives1.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js
index 4b5ae27b32172..509c4e771e69c 100644
--- a/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js
+++ b/tests/baselines/reference/emitBundleWithShebangAndPrologueDirectives2.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js b/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js
index 96475891f5f77..98bf1e6e43940 100644
--- a/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js
+++ b/tests/baselines/reference/emitClassDeclarationWithPropertyAccessInHeritageClause1.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js
index c77c114490044..38f8df98acfe3 100644
--- a/tests/baselines/reference/emitClassExpressionInDeclarationFile.js
+++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js
index 7448d7496af59..db4ba3df66d04 100644
--- a/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js
+++ b/tests/baselines/reference/emitClassExpressionInDeclarationFile2.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js
index ecc0e1b15da1f..86363ab89407e 100644
--- a/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js
+++ b/tests/baselines/reference/emitSuperCallBeforeEmitParameterPropertyDeclaration1.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js
index b86293a11ab64..a2e7fa72da6a3 100644
--- a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js
+++ b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclaration1.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js
index ebf17a5fa7f26..9ba489988d8cf 100644
--- a/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js
+++ b/tests/baselines/reference/emitSuperCallBeforeEmitPropertyDeclarationAndParameterPropertyDeclaration1.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitThisInSuperMethodCall.js b/tests/baselines/reference/emitThisInSuperMethodCall.js
index 038e3d87b8e2a..615030e742cf4 100644
--- a/tests/baselines/reference/emitThisInSuperMethodCall.js
+++ b/tests/baselines/reference/emitThisInSuperMethodCall.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js
index d39903e283504..6057695e308b3 100644
--- a/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js
+++ b/tests/baselines/reference/emitter.asyncGenerators.classMethods.es5.js
@@ -590,7 +590,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/emptyModuleName.js b/tests/baselines/reference/emptyModuleName.js
index 7949a08daa179..d7c53399dc228 100644
--- a/tests/baselines/reference/emptyModuleName.js
+++ b/tests/baselines/reference/emptyModuleName.js
@@ -18,7 +18,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/enumAssignmentCompat7.js b/tests/baselines/reference/enumAssignmentCompat7.js
index 4521732abed6d..223caaf5ffeb1 100644
--- a/tests/baselines/reference/enumAssignmentCompat7.js
+++ b/tests/baselines/reference/enumAssignmentCompat7.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js b/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js
index c17cc4bb2bfdf..8fad8a945a361 100644
--- a/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js
+++ b/tests/baselines/reference/errorForwardReferenceForwadingConstructor.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/errorSuperCalls.js b/tests/baselines/reference/errorSuperCalls.js
index be2bee7189eeb..60570605962c9 100644
--- a/tests/baselines/reference/errorSuperCalls.js
+++ b/tests/baselines/reference/errorSuperCalls.js
@@ -88,7 +88,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/errorSuperPropertyAccess.js b/tests/baselines/reference/errorSuperPropertyAccess.js
index 02b8ddb5fa5e0..9ea6452194db6 100644
--- a/tests/baselines/reference/errorSuperPropertyAccess.js
+++ b/tests/baselines/reference/errorSuperPropertyAccess.js
@@ -142,7 +142,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/errorsInGenericTypeReference.js b/tests/baselines/reference/errorsInGenericTypeReference.js
index 7064c21e2e263..6e4e444c2a99d 100644
--- a/tests/baselines/reference/errorsInGenericTypeReference.js
+++ b/tests/baselines/reference/errorsInGenericTypeReference.js
@@ -85,7 +85,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/es6ClassSuperCodegenBug.js b/tests/baselines/reference/es6ClassSuperCodegenBug.js
index ad8eb5d65397d..1055e63c9ea8a 100644
--- a/tests/baselines/reference/es6ClassSuperCodegenBug.js
+++ b/tests/baselines/reference/es6ClassSuperCodegenBug.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/es6ClassTest.js b/tests/baselines/reference/es6ClassTest.js
index 0620805654f9e..eba7c2cc5dee0 100644
--- a/tests/baselines/reference/es6ClassTest.js
+++ b/tests/baselines/reference/es6ClassTest.js
@@ -98,7 +98,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/es6ClassTest2.js b/tests/baselines/reference/es6ClassTest2.js
index 0bfcecaecf432..5842f7a301340 100644
--- a/tests/baselines/reference/es6ClassTest2.js
+++ b/tests/baselines/reference/es6ClassTest2.js
@@ -172,7 +172,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/es6ClassTest7.js b/tests/baselines/reference/es6ClassTest7.js
index e0352d1d20e71..29485ac654400 100644
--- a/tests/baselines/reference/es6ClassTest7.js
+++ b/tests/baselines/reference/es6ClassTest7.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/exportAssignmentOfGenericType1.js b/tests/baselines/reference/exportAssignmentOfGenericType1.js
index 4f95d939182c8..af8569f2cfefc 100644
--- a/tests/baselines/reference/exportAssignmentOfGenericType1.js
+++ b/tests/baselines/reference/exportAssignmentOfGenericType1.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/exportClassExtendingIntersection.js b/tests/baselines/reference/exportClassExtendingIntersection.js
index ebf41f7c14932..f4a0d7294b6b5 100644
--- a/tests/baselines/reference/exportClassExtendingIntersection.js
+++ b/tests/baselines/reference/exportClassExtendingIntersection.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -86,7 +97,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/exportDeclarationInInternalModule.js b/tests/baselines/reference/exportDeclarationInInternalModule.js
index 700ed5d165545..e5f8ff99303e8 100644
--- a/tests/baselines/reference/exportDeclarationInInternalModule.js
+++ b/tests/baselines/reference/exportDeclarationInInternalModule.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/exportDefaultAbstractClass.js b/tests/baselines/reference/exportDefaultAbstractClass.js
index bfd94efbe1e68..1888d7d06079a 100644
--- a/tests/baselines/reference/exportDefaultAbstractClass.js
+++ b/tests/baselines/reference/exportDefaultAbstractClass.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -57,7 +68,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extBaseClass1.js b/tests/baselines/reference/extBaseClass1.js
index ad32070d6e655..e6aab9bece77a 100644
--- a/tests/baselines/reference/extBaseClass1.js
+++ b/tests/baselines/reference/extBaseClass1.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extBaseClass2.js b/tests/baselines/reference/extBaseClass2.js
index 30bf5091018be..93932e782a17b 100644
--- a/tests/baselines/reference/extBaseClass2.js
+++ b/tests/baselines/reference/extBaseClass2.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType.js b/tests/baselines/reference/extendAndImplementTheSameBaseType.js
index 4c55fb05a7bb6..d49686cc3a068 100644
--- a/tests/baselines/reference/extendAndImplementTheSameBaseType.js
+++ b/tests/baselines/reference/extendAndImplementTheSameBaseType.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js
index 06446a30b451f..e294d1dccb617 100644
--- a/tests/baselines/reference/extendAndImplementTheSameBaseType2.js
+++ b/tests/baselines/reference/extendAndImplementTheSameBaseType2.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js
index 8f73281fecdc0..2bcb6255e1b3c 100644
--- a/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js
+++ b/tests/baselines/reference/extendBaseClassBeforeItsDeclared.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendClassExpressionFromModule.js b/tests/baselines/reference/extendClassExpressionFromModule.js
index 1089c3f21618d..ac48ccac8f134 100644
--- a/tests/baselines/reference/extendClassExpressionFromModule.js
+++ b/tests/baselines/reference/extendClassExpressionFromModule.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendConstructSignatureInInterface.js b/tests/baselines/reference/extendConstructSignatureInInterface.js
index 266c4d9d57873..52e5a9c648097 100644
--- a/tests/baselines/reference/extendConstructSignatureInInterface.js
+++ b/tests/baselines/reference/extendConstructSignatureInInterface.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendFromAny.js b/tests/baselines/reference/extendFromAny.js
index bef64c8d6bacf..d0c60075a5522 100644
--- a/tests/baselines/reference/extendFromAny.js
+++ b/tests/baselines/reference/extendFromAny.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendNonClassSymbol1.js b/tests/baselines/reference/extendNonClassSymbol1.js
index 6f1e85ca82612..c52215d3bc8fe 100644
--- a/tests/baselines/reference/extendNonClassSymbol1.js
+++ b/tests/baselines/reference/extendNonClassSymbol1.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendNonClassSymbol2.js b/tests/baselines/reference/extendNonClassSymbol2.js
index 43d97147b2f83..4cea494216392 100644
--- a/tests/baselines/reference/extendNonClassSymbol2.js
+++ b/tests/baselines/reference/extendNonClassSymbol2.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendPrivateConstructorClass.js b/tests/baselines/reference/extendPrivateConstructorClass.js
index aba75bce93b00..eccb0fe7c1ddc 100644
--- a/tests/baselines/reference/extendPrivateConstructorClass.js
+++ b/tests/baselines/reference/extendPrivateConstructorClass.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js
index 0aaa53c1965c8..f3c03b9201dd5 100644
--- a/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js
+++ b/tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.js
@@ -55,7 +55,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -83,7 +94,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendsClause.js b/tests/baselines/reference/extendsClause.js
index 6a97cede6f756..e8bed4ca9ee25 100644
--- a/tests/baselines/reference/extendsClause.js
+++ b/tests/baselines/reference/extendsClause.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendsClauseAlreadySeen.js b/tests/baselines/reference/extendsClauseAlreadySeen.js
index 76616a94ec42a..26922df70f3e3 100644
--- a/tests/baselines/reference/extendsClauseAlreadySeen.js
+++ b/tests/baselines/reference/extendsClauseAlreadySeen.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendsClauseAlreadySeen2.js b/tests/baselines/reference/extendsClauseAlreadySeen2.js
index 0aa470000b7a4..d35264e58283e 100644
--- a/tests/baselines/reference/extendsClauseAlreadySeen2.js
+++ b/tests/baselines/reference/extendsClauseAlreadySeen2.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/extendsUntypedModule.js b/tests/baselines/reference/extendsUntypedModule.js
index c28041bb52dd6..b01371e82e676 100644
--- a/tests/baselines/reference/extendsUntypedModule.js
+++ b/tests/baselines/reference/extendsUntypedModule.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/fluentClasses.js b/tests/baselines/reference/fluentClasses.js
index a1cb6f117d119..664517bcd97ca 100644
--- a/tests/baselines/reference/fluentClasses.js
+++ b/tests/baselines/reference/fluentClasses.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/for-inStatements.js b/tests/baselines/reference/for-inStatements.js
index 7ecc4c81cab80..11b2118bc5067 100644
--- a/tests/baselines/reference/for-inStatements.js
+++ b/tests/baselines/reference/for-inStatements.js
@@ -94,7 +94,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/for-inStatementsInvalid.js b/tests/baselines/reference/for-inStatementsInvalid.js
index 01b04d4e76d87..d4439495f6307 100644
--- a/tests/baselines/reference/for-inStatementsInvalid.js
+++ b/tests/baselines/reference/for-inStatementsInvalid.js
@@ -77,7 +77,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/forStatementsMultipleInvalidDecl.js b/tests/baselines/reference/forStatementsMultipleInvalidDecl.js
index 4f20bcc7d0439..6ab499c3c973e 100644
--- a/tests/baselines/reference/forStatementsMultipleInvalidDecl.js
+++ b/tests/baselines/reference/forStatementsMultipleInvalidDecl.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/functionImplementationErrors.js b/tests/baselines/reference/functionImplementationErrors.js
index dbe978ed8d0db..496d45d587d72 100644
--- a/tests/baselines/reference/functionImplementationErrors.js
+++ b/tests/baselines/reference/functionImplementationErrors.js
@@ -87,7 +87,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/functionImplementations.js b/tests/baselines/reference/functionImplementations.js
index 38e9c08bc3133..c6db0dfbb6530 100644
--- a/tests/baselines/reference/functionImplementations.js
+++ b/tests/baselines/reference/functionImplementations.js
@@ -170,7 +170,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs.js b/tests/baselines/reference/functionSubtypingOfVarArgs.js
index efc610db26383..e9389b73de5ed 100644
--- a/tests/baselines/reference/functionSubtypingOfVarArgs.js
+++ b/tests/baselines/reference/functionSubtypingOfVarArgs.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/functionSubtypingOfVarArgs2.js b/tests/baselines/reference/functionSubtypingOfVarArgs2.js
index 91fcb518c565c..eea60e929a7dd 100644
--- a/tests/baselines/reference/functionSubtypingOfVarArgs2.js
+++ b/tests/baselines/reference/functionSubtypingOfVarArgs2.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/generatedContextualTyping.js b/tests/baselines/reference/generatedContextualTyping.js
index 245e75dc967ee..1b75f53626c96 100644
--- a/tests/baselines/reference/generatedContextualTyping.js
+++ b/tests/baselines/reference/generatedContextualTyping.js
@@ -368,7 +368,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty.js b/tests/baselines/reference/genericBaseClassLiteralProperty.js
index 4b8e9fa2e09f8..dbad38e5b8caf 100644
--- a/tests/baselines/reference/genericBaseClassLiteralProperty.js
+++ b/tests/baselines/reference/genericBaseClassLiteralProperty.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericBaseClassLiteralProperty2.js b/tests/baselines/reference/genericBaseClassLiteralProperty2.js
index 44c944f1f30cd..078dc06c42de8 100644
--- a/tests/baselines/reference/genericBaseClassLiteralProperty2.js
+++ b/tests/baselines/reference/genericBaseClassLiteralProperty2.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js
index dc8e356ffa0ea..60b7497421e54 100644
--- a/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js
+++ b/tests/baselines/reference/genericCallWithConstraintsTypeArgumentInference.js
@@ -122,7 +122,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js
index 4b33dc00388c7..a9406518ae72b 100644
--- a/tests/baselines/reference/genericCallWithObjectTypeArgs2.js
+++ b/tests/baselines/reference/genericCallWithObjectTypeArgs2.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js
index 5a3e096ba8342..54b29e1d043f2 100644
--- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js
+++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints2.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js
index 8e71c2626a652..97a195e9191d3 100644
--- a/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js
+++ b/tests/baselines/reference/genericCallWithObjectTypeArgsAndConstraints3.js
@@ -52,7 +52,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js
index c93da41f0c536..573893abb3203 100644
--- a/tests/baselines/reference/genericCallbacksAndClassHierarchy.js
+++ b/tests/baselines/reference/genericCallbacksAndClassHierarchy.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericClassExpressionInFunction.js b/tests/baselines/reference/genericClassExpressionInFunction.js
index bbb54988d3991..3a2b764830960 100644
--- a/tests/baselines/reference/genericClassExpressionInFunction.js
+++ b/tests/baselines/reference/genericClassExpressionInFunction.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js
index e9f0e57d0f376..104d393176c21 100644
--- a/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js
+++ b/tests/baselines/reference/genericClassInheritsConstructorFromNonGenericClass.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js
index 7dfe12ed733c8..e39996abe7373 100644
--- a/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js
+++ b/tests/baselines/reference/genericClassPropertyInheritanceSpecialization.js
@@ -89,7 +89,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericClassStaticMethod.js b/tests/baselines/reference/genericClassStaticMethod.js
index 6d8456baad360..3cde6d7ecd564 100644
--- a/tests/baselines/reference/genericClassStaticMethod.js
+++ b/tests/baselines/reference/genericClassStaticMethod.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericClasses3.js b/tests/baselines/reference/genericClasses3.js
index 93510e4f6ce19..ccd6eeebac6f8 100644
--- a/tests/baselines/reference/genericClasses3.js
+++ b/tests/baselines/reference/genericClasses3.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js
index 7a7d6617f536a..d56cfaecf6342 100644
--- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js
+++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js
index 10a972bae61a0..a9176c796ca41 100644
--- a/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js
+++ b/tests/baselines/reference/genericConstraintOnExtendedBuiltinTypes2.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js
index 0b5e338a0c3de..235af4816b401 100644
--- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js
+++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js
index de40fd79a1920..37504ba32b25b 100644
--- a/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js
+++ b/tests/baselines/reference/genericDerivedTypeWithSpecializedBase2.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericInheritedDefaultConstructors.js b/tests/baselines/reference/genericInheritedDefaultConstructors.js
index 5cd81c9e8bb81..5268ca3784bd2 100644
--- a/tests/baselines/reference/genericInheritedDefaultConstructors.js
+++ b/tests/baselines/reference/genericInheritedDefaultConstructors.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericPrototypeProperty2.js b/tests/baselines/reference/genericPrototypeProperty2.js
index 76e0f9859535f..738988126631f 100644
--- a/tests/baselines/reference/genericPrototypeProperty2.js
+++ b/tests/baselines/reference/genericPrototypeProperty2.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericPrototypeProperty3.js b/tests/baselines/reference/genericPrototypeProperty3.js
index a98ab1f444ec4..0eb107dd1f65d 100644
--- a/tests/baselines/reference/genericPrototypeProperty3.js
+++ b/tests/baselines/reference/genericPrototypeProperty3.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js
index 6dc42e72ce09a..123deb2f9cf22 100644
--- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js
+++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors2.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js
index f10a8f97f1643..6a51b2a184e08 100644
--- a/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js
+++ b/tests/baselines/reference/genericRecursiveImplicitConstructorErrors3.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericTypeAssertions2.js b/tests/baselines/reference/genericTypeAssertions2.js
index e26d966e632b7..1513ecaa0187d 100644
--- a/tests/baselines/reference/genericTypeAssertions2.js
+++ b/tests/baselines/reference/genericTypeAssertions2.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericTypeAssertions4.js b/tests/baselines/reference/genericTypeAssertions4.js
index 97849e41f8bae..ba70d50dcf61b 100644
--- a/tests/baselines/reference/genericTypeAssertions4.js
+++ b/tests/baselines/reference/genericTypeAssertions4.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericTypeAssertions6.js b/tests/baselines/reference/genericTypeAssertions6.js
index 7a5635f79c40b..2d86f0b70c571 100644
--- a/tests/baselines/reference/genericTypeAssertions6.js
+++ b/tests/baselines/reference/genericTypeAssertions6.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericTypeConstraints.js b/tests/baselines/reference/genericTypeConstraints.js
index 7af7c490ce779..b731d9e767e2b 100644
--- a/tests/baselines/reference/genericTypeConstraints.js
+++ b/tests/baselines/reference/genericTypeConstraints.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js
index 959a775516468..75349e0c5b0a0 100644
--- a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js
+++ b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument.js
@@ -53,7 +53,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js
index 3f54bff047d39..f0571544bb8ef 100644
--- a/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js
+++ b/tests/baselines/reference/genericTypeReferenceWithoutTypeArgument2.js
@@ -53,7 +53,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js
index 85833c8cd96db..b51eefc4bf935 100644
--- a/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js
+++ b/tests/baselines/reference/genericWithIndexerOfTypeParameterType2.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/heterogeneousArrayLiterals.js b/tests/baselines/reference/heterogeneousArrayLiterals.js
index 87ac78e3e6525..a32d9b7e24bfa 100644
--- a/tests/baselines/reference/heterogeneousArrayLiterals.js
+++ b/tests/baselines/reference/heterogeneousArrayLiterals.js
@@ -146,7 +146,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/ifDoWhileStatements.js b/tests/baselines/reference/ifDoWhileStatements.js
index 5e4b91d7ec8bc..0c95a0a5c1c70 100644
--- a/tests/baselines/reference/ifDoWhileStatements.js
+++ b/tests/baselines/reference/ifDoWhileStatements.js
@@ -176,7 +176,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/illegalSuperCallsInConstructor.js b/tests/baselines/reference/illegalSuperCallsInConstructor.js
index 58e7072f1e71f..0fadf0b1a3dea 100644
--- a/tests/baselines/reference/illegalSuperCallsInConstructor.js
+++ b/tests/baselines/reference/illegalSuperCallsInConstructor.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/implementClausePrecedingExtends.js b/tests/baselines/reference/implementClausePrecedingExtends.js
index e871c7da56dea..49ed17d9da75e 100644
--- a/tests/baselines/reference/implementClausePrecedingExtends.js
+++ b/tests/baselines/reference/implementClausePrecedingExtends.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js
index 8b1409323dbe8..070ae8c5de3fe 100644
--- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js
+++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithPrivates2.js
@@ -99,7 +99,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js
index 16fe16343f885..8a4e3c4e73fc3 100644
--- a/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js
+++ b/tests/baselines/reference/implementingAnInterfaceExtendingClassWithProtecteds.js
@@ -55,7 +55,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importAsBaseClass.js b/tests/baselines/reference/importAsBaseClass.js
index 013b958fde361..4278a05a75deb 100644
--- a/tests/baselines/reference/importAsBaseClass.js
+++ b/tests/baselines/reference/importAsBaseClass.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importHelpers.js b/tests/baselines/reference/importHelpers.js
index edc0aa2c58fa3..d026e8f4affd3 100644
--- a/tests/baselines/reference/importHelpers.js
+++ b/tests/baselines/reference/importHelpers.js
@@ -98,7 +98,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importHelpersInIsolatedModules.js b/tests/baselines/reference/importHelpersInIsolatedModules.js
index 884cfa84fe172..41496d059ec5c 100644
--- a/tests/baselines/reference/importHelpersInIsolatedModules.js
+++ b/tests/baselines/reference/importHelpersInIsolatedModules.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importHelpersNoHelpers.js b/tests/baselines/reference/importHelpersNoHelpers.js
index 23af5f3ca43e3..9d06904ee2d07 100644
--- a/tests/baselines/reference/importHelpersNoHelpers.js
+++ b/tests/baselines/reference/importHelpersNoHelpers.js
@@ -92,7 +92,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importHelpersNoModule.js b/tests/baselines/reference/importHelpersNoModule.js
index b4a8fa89c1e4c..03fe6c54f1670 100644
--- a/tests/baselines/reference/importHelpersNoModule.js
+++ b/tests/baselines/reference/importHelpersNoModule.js
@@ -72,7 +72,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importNotElidedWhenNotFound.js b/tests/baselines/reference/importNotElidedWhenNotFound.js
index 85f0d05b1c14f..6f3d812fa71f1 100644
--- a/tests/baselines/reference/importNotElidedWhenNotFound.js
+++ b/tests/baselines/reference/importNotElidedWhenNotFound.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importShadowsGlobalName.js b/tests/baselines/reference/importShadowsGlobalName.js
index f9c67de5b6f06..af5c6c512354e 100644
--- a/tests/baselines/reference/importShadowsGlobalName.js
+++ b/tests/baselines/reference/importShadowsGlobalName.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/importUsedInExtendsList1.js b/tests/baselines/reference/importUsedInExtendsList1.js
index 9d0a47ca432f4..dc370869c33a0 100644
--- a/tests/baselines/reference/importUsedInExtendsList1.js
+++ b/tests/baselines/reference/importUsedInExtendsList1.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js b/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js
index a8b1688d633c3..88c14f9b1474e 100644
--- a/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js
+++ b/tests/baselines/reference/indexedAccessKeyofNestedSimplifiedSubstituteUnwrapped.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/indexedAccessRelation.js b/tests/baselines/reference/indexedAccessRelation.js
index 883bf880cd5cb..5ef886d00911a 100644
--- a/tests/baselines/reference/indexedAccessRelation.js
+++ b/tests/baselines/reference/indexedAccessRelation.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/indexedAccessTypeConstraints.js b/tests/baselines/reference/indexedAccessTypeConstraints.js
index fdc27630fcf02..97111485c98ed 100644
--- a/tests/baselines/reference/indexedAccessTypeConstraints.js
+++ b/tests/baselines/reference/indexedAccessTypeConstraints.js
@@ -51,7 +51,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/indexerConstraints2.js b/tests/baselines/reference/indexerConstraints2.js
index 767e2cbcd2b84..116a1f2ee85c8 100644
--- a/tests/baselines/reference/indexerConstraints2.js
+++ b/tests/baselines/reference/indexerConstraints2.js
@@ -95,7 +95,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/indirectSelfReference.js b/tests/baselines/reference/indirectSelfReference.js
index 19ac130ab1fb8..983f81e3b0319 100644
--- a/tests/baselines/reference/indirectSelfReference.js
+++ b/tests/baselines/reference/indirectSelfReference.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/indirectSelfReferenceGeneric.js b/tests/baselines/reference/indirectSelfReferenceGeneric.js
index 0f22f478c6ac0..cd442ed87f406 100644
--- a/tests/baselines/reference/indirectSelfReferenceGeneric.js
+++ b/tests/baselines/reference/indirectSelfReferenceGeneric.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inferTypeParameterConstraints.js b/tests/baselines/reference/inferTypeParameterConstraints.js
index 5a53492f37cc5..edca02cd7fbf7 100644
--- a/tests/baselines/reference/inferTypeParameterConstraints.js
+++ b/tests/baselines/reference/inferTypeParameterConstraints.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inferTypePredicates.js b/tests/baselines/reference/inferTypePredicates.js
index a24586a228653..60f506e04a5bd 100644
--- a/tests/baselines/reference/inferTypePredicates.js
+++ b/tests/baselines/reference/inferTypePredicates.js
@@ -327,7 +327,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js
index 378439a3a8cb8..ac0df1210f77e 100644
--- a/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js
+++ b/tests/baselines/reference/infinitelyExpandingTypesNonGenericBase.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritFromGenericTypeParameter.js b/tests/baselines/reference/inheritFromGenericTypeParameter.js
index 34f4c187af298..93324a9ba4a6e 100644
--- a/tests/baselines/reference/inheritFromGenericTypeParameter.js
+++ b/tests/baselines/reference/inheritFromGenericTypeParameter.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js
index a5546e093ce94..4095ea6707091 100644
--- a/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js
+++ b/tests/baselines/reference/inheritSameNamePrivatePropertiesFromSameOrigin.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritance.js b/tests/baselines/reference/inheritance.js
index a58e8c19a6dae..93c0813c3984a 100644
--- a/tests/baselines/reference/inheritance.js
+++ b/tests/baselines/reference/inheritance.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritance1.js b/tests/baselines/reference/inheritance1.js
index a0230873412ee..e3d7a8590da28 100644
--- a/tests/baselines/reference/inheritance1.js
+++ b/tests/baselines/reference/inheritance1.js
@@ -75,7 +75,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js
index 9bff1a8c7011e..764a183ff4c4c 100644
--- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js
+++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollision.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js
index 6039cd7edacf4..3d4aa0b20b083 100644
--- a/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js
+++ b/tests/baselines/reference/inheritanceGrandParentPrivateMemberCollisionWithPublicMember.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js
index c30e1cddb2a2f..564c925402605 100644
--- a/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js
+++ b/tests/baselines/reference/inheritanceGrandParentPublicMemberCollisionWithPrivateMember.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js
index 96bc1a5c6be40..7d799265ad546 100644
--- a/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js
+++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingAccessor.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js
index f40bd95e04e77..112ff3340dc7d 100644
--- a/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js
+++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingMethod.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js
index 6582ccac62377..8deee62b1ae42 100644
--- a/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js
+++ b/tests/baselines/reference/inheritanceMemberAccessorOverridingProperty.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js
index f72760f47b851..1436dd39d1f97 100644
--- a/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js
+++ b/tests/baselines/reference/inheritanceMemberFuncOverridingAccessor.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js
index 5f787e6ea7da6..57420bf368306 100644
--- a/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js
+++ b/tests/baselines/reference/inheritanceMemberFuncOverridingMethod.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js
index f18752e4a926f..38b9b1ce62ddc 100644
--- a/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js
+++ b/tests/baselines/reference/inheritanceMemberFuncOverridingProperty.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js
index b734fe03ea3d6..0ab00fe753f03 100644
--- a/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js
+++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingAccessor.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js
index 7e3c209d2327c..01593a7c95e77 100644
--- a/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js
+++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingMethod.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js
index 4eafd8c34a15b..9942da78844b4 100644
--- a/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js
+++ b/tests/baselines/reference/inheritanceMemberPropertyOverridingProperty.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js
index e9f188d493063..da3de14d7a635 100644
--- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js
+++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod1.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js
index 1e341c6c18380..f650861a9876a 100644
--- a/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js
+++ b/tests/baselines/reference/inheritanceOfGenericConstructorMethod2.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js
index 0d282b0273d37..9af31dea96882 100644
--- a/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js
+++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingAccessor.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js
index 3a504f8928e21..f7a9c17bb530d 100644
--- a/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js
+++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingMethod.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js
index 3c81e4bc57451..6ae3ab146f152 100644
--- a/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js
+++ b/tests/baselines/reference/inheritanceStaticAccessorOverridingProperty.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js
index 45c6d93080413..8830cb86c04da 100644
--- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js
+++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessor.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js
index b62441a5d946b..15f2c16204e78 100644
--- a/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js
+++ b/tests/baselines/reference/inheritanceStaticFuncOverridingAccessorOfFuncType.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js
index e7342b1bd2f8c..bb8393dafd4b4 100644
--- a/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js
+++ b/tests/baselines/reference/inheritanceStaticFuncOverridingMethod.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js
index 2adc5957c89a4..873f14679e978 100644
--- a/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js
+++ b/tests/baselines/reference/inheritanceStaticFuncOverridingProperty.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js
index d05f45e990103..7d86ee16ccf45 100644
--- a/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js
+++ b/tests/baselines/reference/inheritanceStaticFuncOverridingPropertyOfFuncType.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js
index 409740df0accf..91376b977b4c9 100644
--- a/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js
+++ b/tests/baselines/reference/inheritanceStaticFunctionOverridingInstanceProperty.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticMembersCompatible.js b/tests/baselines/reference/inheritanceStaticMembersCompatible.js
index 6fe28fa34414b..da7427a32b57a 100644
--- a/tests/baselines/reference/inheritanceStaticMembersCompatible.js
+++ b/tests/baselines/reference/inheritanceStaticMembersCompatible.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js
index 6c16525851756..ec933cb1e32fb 100644
--- a/tests/baselines/reference/inheritanceStaticMembersIncompatible.js
+++ b/tests/baselines/reference/inheritanceStaticMembersIncompatible.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js
index 7c8cb8cd0fac0..ae2394565d5a8 100644
--- a/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js
+++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingAccessor.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js
index cb226e73c987e..35134caec1864 100644
--- a/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js
+++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingMethod.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js
index e91e08a3d8b76..054159eed123b 100644
--- a/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js
+++ b/tests/baselines/reference/inheritanceStaticPropertyOverridingProperty.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritedConstructorPropertyContextualType.js b/tests/baselines/reference/inheritedConstructorPropertyContextualType.js
index 5874cacb7a4bc..41c78f3ddb82d 100644
--- a/tests/baselines/reference/inheritedConstructorPropertyContextualType.js
+++ b/tests/baselines/reference/inheritedConstructorPropertyContextualType.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams.js b/tests/baselines/reference/inheritedConstructorWithRestParams.js
index d2575e79e7d81..094b4aacb9d50 100644
--- a/tests/baselines/reference/inheritedConstructorWithRestParams.js
+++ b/tests/baselines/reference/inheritedConstructorWithRestParams.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritedConstructorWithRestParams2.js b/tests/baselines/reference/inheritedConstructorWithRestParams2.js
index 7b5a1e6e79cb4..b13f01177be3d 100644
--- a/tests/baselines/reference/inheritedConstructorWithRestParams2.js
+++ b/tests/baselines/reference/inheritedConstructorWithRestParams2.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/inheritedModuleMembersForClodule.js b/tests/baselines/reference/inheritedModuleMembersForClodule.js
index 51d17fa09af4a..2a3fc2d5bdddc 100644
--- a/tests/baselines/reference/inheritedModuleMembersForClodule.js
+++ b/tests/baselines/reference/inheritedModuleMembersForClodule.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/initializerWithThisPropertyAccess.js b/tests/baselines/reference/initializerWithThisPropertyAccess.js
index ceae1f19bf64c..06fc3996501e5 100644
--- a/tests/baselines/reference/initializerWithThisPropertyAccess.js
+++ b/tests/baselines/reference/initializerWithThisPropertyAccess.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/instanceOfAssignability.js b/tests/baselines/reference/instanceOfAssignability.js
index c3cbbb29162b8..f2f561ca1defc 100644
--- a/tests/baselines/reference/instanceOfAssignability.js
+++ b/tests/baselines/reference/instanceOfAssignability.js
@@ -103,7 +103,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js
index 45d4595adb402..44e77d4b76181 100644
--- a/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js
+++ b/tests/baselines/reference/instancePropertiesInheritedIntoClassType.js
@@ -56,7 +56,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/instanceSubtypeCheck2.js b/tests/baselines/reference/instanceSubtypeCheck2.js
index f00fbfeeb767d..028c94a75455e 100644
--- a/tests/baselines/reference/instanceSubtypeCheck2.js
+++ b/tests/baselines/reference/instanceSubtypeCheck2.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js
index f40baf0d7ca91..7b8b0eff82117 100644
--- a/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js
+++ b/tests/baselines/reference/instanceofWithStructurallyIdenticalTypes.js
@@ -85,7 +85,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/instantiatedReturnTypeContravariance.js b/tests/baselines/reference/instantiatedReturnTypeContravariance.js
index e41e6b822a55e..f3e2f3bb58250 100644
--- a/tests/baselines/reference/instantiatedReturnTypeContravariance.js
+++ b/tests/baselines/reference/instantiatedReturnTypeContravariance.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceClassMerging.js b/tests/baselines/reference/interfaceClassMerging.js
index 4467930c28390..7a72e903d7579 100644
--- a/tests/baselines/reference/interfaceClassMerging.js
+++ b/tests/baselines/reference/interfaceClassMerging.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceClassMerging2.js b/tests/baselines/reference/interfaceClassMerging2.js
index 83e389f53d6bd..f51b0ee2cf057 100644
--- a/tests/baselines/reference/interfaceClassMerging2.js
+++ b/tests/baselines/reference/interfaceClassMerging2.js
@@ -50,7 +50,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceExtendsClass1.js b/tests/baselines/reference/interfaceExtendsClass1.js
index 716a5ebb44a02..3e7eaec2f9711 100644
--- a/tests/baselines/reference/interfaceExtendsClass1.js
+++ b/tests/baselines/reference/interfaceExtendsClass1.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js
index 8d8f0e3ef712b..4e7fd2a55bb76 100644
--- a/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js
+++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate1.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js
index 20857b31f6892..f7f12abe62500 100644
--- a/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js
+++ b/tests/baselines/reference/interfaceExtendsClassWithPrivate2.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceExtendsObjectIntersection.js b/tests/baselines/reference/interfaceExtendsObjectIntersection.js
index 5e0c3d1519ef9..604b37c6f9272 100644
--- a/tests/baselines/reference/interfaceExtendsObjectIntersection.js
+++ b/tests/baselines/reference/interfaceExtendsObjectIntersection.js
@@ -68,7 +68,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js b/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js
index 0a9f5c668e7f5..8957cb648589d 100644
--- a/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js
+++ b/tests/baselines/reference/interfaceExtendsObjectIntersectionErrors.js
@@ -62,7 +62,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceImplementation8.js b/tests/baselines/reference/interfaceImplementation8.js
index ea4b282be92b0..fddd103e83e9a 100644
--- a/tests/baselines/reference/interfaceImplementation8.js
+++ b/tests/baselines/reference/interfaceImplementation8.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/interfaceMergeWithNonGenericTypeArguments.js b/tests/baselines/reference/interfaceMergeWithNonGenericTypeArguments.js
index 7dcb071b37a3c..de89294525780 100644
--- a/tests/baselines/reference/interfaceMergeWithNonGenericTypeArguments.js
+++ b/tests/baselines/reference/interfaceMergeWithNonGenericTypeArguments.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js b/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js
index 015be3b1cfcda..a733b47182ef0 100644
--- a/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js
+++ b/tests/baselines/reference/invalidModuleWithStatementsOfEveryKind.js
@@ -93,7 +93,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/invalidMultipleVariableDeclarations.js b/tests/baselines/reference/invalidMultipleVariableDeclarations.js
index 708a74c5afe17..66c5739b80ce1 100644
--- a/tests/baselines/reference/invalidMultipleVariableDeclarations.js
+++ b/tests/baselines/reference/invalidMultipleVariableDeclarations.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/invalidReturnStatements.js b/tests/baselines/reference/invalidReturnStatements.js
index 4f0f15e115923..3999e848634b7 100644
--- a/tests/baselines/reference/invalidReturnStatements.js
+++ b/tests/baselines/reference/invalidReturnStatements.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/isolatedModulesImportExportElision.js b/tests/baselines/reference/isolatedModulesImportExportElision.js
index a441a3f7d21f3..db3ff9a898f0b 100644
--- a/tests/baselines/reference/isolatedModulesImportExportElision.js
+++ b/tests/baselines/reference/isolatedModulesImportExportElision.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/javascriptThisAssignmentInStaticBlock.js b/tests/baselines/reference/javascriptThisAssignmentInStaticBlock.js
index bae195f802150..a92d54e4c7411 100644
--- a/tests/baselines/reference/javascriptThisAssignmentInStaticBlock.js
+++ b/tests/baselines/reference/javascriptThisAssignmentInStaticBlock.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationEmitExportedClassWithExtends.js b/tests/baselines/reference/jsDeclarationEmitExportedClassWithExtends.js
index a4fcd7b6675b7..d04c1e45c5308 100644
--- a/tests/baselines/reference/jsDeclarationEmitExportedClassWithExtends.js
+++ b/tests/baselines/reference/jsDeclarationEmitExportedClassWithExtends.js
@@ -53,7 +53,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js
index bbe7783650f78..ea9a09ba1ce21 100644
--- a/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js
+++ b/tests/baselines/reference/jsDeclarationsClassExtendsVisibility.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsClasses.js b/tests/baselines/reference/jsDeclarationsClasses.js
index 9444df18fd335..eb2ac690eea3b 100644
--- a/tests/baselines/reference/jsDeclarationsClasses.js
+++ b/tests/baselines/reference/jsDeclarationsClasses.js
@@ -209,7 +209,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsClassesErr.js b/tests/baselines/reference/jsDeclarationsClassesErr.js
index 55b5864fae855..323656f440b60 100644
--- a/tests/baselines/reference/jsDeclarationsClassesErr.js
+++ b/tests/baselines/reference/jsDeclarationsClassesErr.js
@@ -87,7 +87,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsDefault.js b/tests/baselines/reference/jsDeclarationsDefault.js
index 4357bdd55759e..e06e146caa6f2 100644
--- a/tests/baselines/reference/jsDeclarationsDefault.js
+++ b/tests/baselines/reference/jsDeclarationsDefault.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsExportedClassAliases.js b/tests/baselines/reference/jsDeclarationsExportedClassAliases.js
index 3a79339339c98..97a57b9546f68 100644
--- a/tests/baselines/reference/jsDeclarationsExportedClassAliases.js
+++ b/tests/baselines/reference/jsDeclarationsExportedClassAliases.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.js b/tests/baselines/reference/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.js
index 4fc24c4e6916e..fc7815d5cbb5a 100644
--- a/tests/baselines/reference/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.js
+++ b/tests/baselines/reference/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsDeclarationsThisTypes.js b/tests/baselines/reference/jsDeclarationsThisTypes.js
index a84d6f15d1710..e7eb2a0622881 100644
--- a/tests/baselines/reference/jsDeclarationsThisTypes.js
+++ b/tests/baselines/reference/jsDeclarationsThisTypes.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js b/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js
index 2678e42c112c4..00bacc20e08a0 100644
--- a/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js
+++ b/tests/baselines/reference/jsNoImplicitAnyNoCascadingReferenceErrors.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsdocLinkTag6.js b/tests/baselines/reference/jsdocLinkTag6.js
index 1e9e933dee8a9..bdf23377ceff2 100644
--- a/tests/baselines/reference/jsdocLinkTag6.js
+++ b/tests/baselines/reference/jsdocLinkTag6.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsdocTypeTagCast.js b/tests/baselines/reference/jsdocTypeTagCast.js
index d829ef238addd..09f38b7f3f237 100644
--- a/tests/baselines/reference/jsdocTypeTagCast.js
+++ b/tests/baselines/reference/jsdocTypeTagCast.js
@@ -93,7 +93,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxCallbackWithDestructuring.js b/tests/baselines/reference/jsxCallbackWithDestructuring.js
index 0822a28f66fbf..43e8ec1331fd8 100644
--- a/tests/baselines/reference/jsxCallbackWithDestructuring.js
+++ b/tests/baselines/reference/jsxCallbackWithDestructuring.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js b/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js
index aad5c33295277..a950e90fb8045 100644
--- a/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js
+++ b/tests/baselines/reference/jsxChildrenSingleChildConfusableWithMultipleChildrenNoError.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxElementType.js b/tests/baselines/reference/jsxElementType.js
index 6d8349d54728a..0be42b4588b1e 100644
--- a/tests/baselines/reference/jsxElementType.js
+++ b/tests/baselines/reference/jsxElementType.js
@@ -127,7 +127,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxHasLiteralType.js b/tests/baselines/reference/jsxHasLiteralType.js
index 209e4cbf426cf..8eac16327a284 100644
--- a/tests/baselines/reference/jsxHasLiteralType.js
+++ b/tests/baselines/reference/jsxHasLiteralType.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxInExtendsClause.js b/tests/baselines/reference/jsxInExtendsClause.js
index ecd405c36b983..46e16801fe049 100644
--- a/tests/baselines/reference/jsxInExtendsClause.js
+++ b/tests/baselines/reference/jsxInExtendsClause.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxViaImport.2.js b/tests/baselines/reference/jsxViaImport.2.js
index 5b1aaf04d3235..2d2e3ac9ee493 100644
--- a/tests/baselines/reference/jsxViaImport.2.js
+++ b/tests/baselines/reference/jsxViaImport.2.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/jsxViaImport.js b/tests/baselines/reference/jsxViaImport.js
index 481ca9d11c0d3..a9f9a68512c32 100644
--- a/tests/baselines/reference/jsxViaImport.js
+++ b/tests/baselines/reference/jsxViaImport.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/keyofAndIndexedAccess.js b/tests/baselines/reference/keyofAndIndexedAccess.js
index ea10cf32f5e50..0c30cbb164f50 100644
--- a/tests/baselines/reference/keyofAndIndexedAccess.js
+++ b/tests/baselines/reference/keyofAndIndexedAccess.js
@@ -672,7 +672,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/keyofGenericExtendingClassDoubleLayer.js b/tests/baselines/reference/keyofGenericExtendingClassDoubleLayer.js
index 92c2ae000721f..1b69314f9149b 100644
--- a/tests/baselines/reference/keyofGenericExtendingClassDoubleLayer.js
+++ b/tests/baselines/reference/keyofGenericExtendingClassDoubleLayer.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/lambdaArgCrash.js b/tests/baselines/reference/lambdaArgCrash.js
index ed8057854bd2a..c43a3cd18a4bf 100644
--- a/tests/baselines/reference/lambdaArgCrash.js
+++ b/tests/baselines/reference/lambdaArgCrash.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/lift.js b/tests/baselines/reference/lift.js
index 5788497c92059..82435c79df1ae 100644
--- a/tests/baselines/reference/lift.js
+++ b/tests/baselines/reference/lift.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/localTypeParameterInferencePriority.js b/tests/baselines/reference/localTypeParameterInferencePriority.js
index 42ceb1ea407e6..b4297a355c32c 100644
--- a/tests/baselines/reference/localTypeParameterInferencePriority.js
+++ b/tests/baselines/reference/localTypeParameterInferencePriority.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/localTypes1.js b/tests/baselines/reference/localTypes1.js
index f00ab93a9049e..6488dcbceb9e5 100644
--- a/tests/baselines/reference/localTypes1.js
+++ b/tests/baselines/reference/localTypes1.js
@@ -154,7 +154,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/m7Bugs.js b/tests/baselines/reference/m7Bugs.js
index b0d2a7b588458..642e53b1771bf 100644
--- a/tests/baselines/reference/m7Bugs.js
+++ b/tests/baselines/reference/m7Bugs.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mappedTypePartialConstraints.js b/tests/baselines/reference/mappedTypePartialConstraints.js
index f3a00c09ca9ed..351f79cb0c3a0 100644
--- a/tests/baselines/reference/mappedTypePartialConstraints.js
+++ b/tests/baselines/reference/mappedTypePartialConstraints.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mergedDeclarations5.js b/tests/baselines/reference/mergedDeclarations5.js
index 5c3d3978e8296..ca222ed030e4c 100644
--- a/tests/baselines/reference/mergedDeclarations5.js
+++ b/tests/baselines/reference/mergedDeclarations5.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mergedDeclarations6.js b/tests/baselines/reference/mergedDeclarations6.js
index fd1d925db202d..1b432cc4f4970 100644
--- a/tests/baselines/reference/mergedDeclarations6.js
+++ b/tests/baselines/reference/mergedDeclarations6.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mergedInheritedClassInterface.js b/tests/baselines/reference/mergedInheritedClassInterface.js
index 6af9f8308fc37..f813a3fa92340 100644
--- a/tests/baselines/reference/mergedInheritedClassInterface.js
+++ b/tests/baselines/reference/mergedInheritedClassInterface.js
@@ -60,7 +60,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js b/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js
index e3f20b0a6fe0c..c327342b22e0d 100644
--- a/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js
+++ b/tests/baselines/reference/mergedInheritedMembersSatisfyAbstractBase.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js
index e58d454f3873b..67645fe340981 100644
--- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js
+++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates2.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js
index d3c56d1900f97..6418ed6e0aa0d 100644
--- a/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js
+++ b/tests/baselines/reference/mergedInterfacesWithInheritedPrivates3.js
@@ -52,7 +52,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/missingPropertiesOfClassExpression.js b/tests/baselines/reference/missingPropertiesOfClassExpression.js
index 863496dfacbac..b043dfb7cb500 100644
--- a/tests/baselines/reference/missingPropertiesOfClassExpression.js
+++ b/tests/baselines/reference/missingPropertiesOfClassExpression.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixinAccessModifiers.js b/tests/baselines/reference/mixinAccessModifiers.js
index 1effc9954afb8..b8790ff625461 100644
--- a/tests/baselines/reference/mixinAccessModifiers.js
+++ b/tests/baselines/reference/mixinAccessModifiers.js
@@ -146,7 +146,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixinClassesAnnotated.js b/tests/baselines/reference/mixinClassesAnnotated.js
index f8d9bdc3ac972..86dd49108a12d 100644
--- a/tests/baselines/reference/mixinClassesAnnotated.js
+++ b/tests/baselines/reference/mixinClassesAnnotated.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixinClassesAnonymous.js b/tests/baselines/reference/mixinClassesAnonymous.js
index e8c6c892e8283..ea1595ef917da 100644
--- a/tests/baselines/reference/mixinClassesAnonymous.js
+++ b/tests/baselines/reference/mixinClassesAnonymous.js
@@ -79,7 +79,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixinClassesMembers.js b/tests/baselines/reference/mixinClassesMembers.js
index 894e7e31d386f..0fc069fbd9d72 100644
--- a/tests/baselines/reference/mixinClassesMembers.js
+++ b/tests/baselines/reference/mixinClassesMembers.js
@@ -112,7 +112,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixinIntersectionIsValidbaseType.js b/tests/baselines/reference/mixinIntersectionIsValidbaseType.js
index 2e4a266f42f2f..c1f41fd1e92a3 100644
--- a/tests/baselines/reference/mixinIntersectionIsValidbaseType.js
+++ b/tests/baselines/reference/mixinIntersectionIsValidbaseType.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixinPrivateAndProtected.js b/tests/baselines/reference/mixinPrivateAndProtected.js
index 3dbf93e89b76a..fa759af3c949e 100644
--- a/tests/baselines/reference/mixinPrivateAndProtected.js
+++ b/tests/baselines/reference/mixinPrivateAndProtected.js
@@ -104,7 +104,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mixingApparentTypeOverrides.js b/tests/baselines/reference/mixingApparentTypeOverrides.js
index f1cba2bcbaa94..1cc045f5baa1f 100644
--- a/tests/baselines/reference/mixingApparentTypeOverrides.js
+++ b/tests/baselines/reference/mixingApparentTypeOverrides.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/moduleAsBaseType.js b/tests/baselines/reference/moduleAsBaseType.js
index 9493575faf69c..fe3480dd88c24 100644
--- a/tests/baselines/reference/moduleAsBaseType.js
+++ b/tests/baselines/reference/moduleAsBaseType.js
@@ -18,7 +18,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js
index 1afa501fd3e5c..8d5578d1152fb 100644
--- a/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js
+++ b/tests/baselines/reference/moduleImportedForTypeArgumentPosition.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/moduleNoneOutFile.js b/tests/baselines/reference/moduleNoneOutFile.js
index 6bce4c35be100..ee3a19bd2f441 100644
--- a/tests/baselines/reference/moduleNoneOutFile.js
+++ b/tests/baselines/reference/moduleNoneOutFile.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/moduleWithStatementsOfEveryKind.js b/tests/baselines/reference/moduleWithStatementsOfEveryKind.js
index 8d205c5b9edd9..3e73bb6133b33 100644
--- a/tests/baselines/reference/moduleWithStatementsOfEveryKind.js
+++ b/tests/baselines/reference/moduleWithStatementsOfEveryKind.js
@@ -72,7 +72,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/multipleInheritance.js b/tests/baselines/reference/multipleInheritance.js
index 3bfa7089bad5c..17817ce02fbc8 100644
--- a/tests/baselines/reference/multipleInheritance.js
+++ b/tests/baselines/reference/multipleInheritance.js
@@ -52,7 +52,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js
index 708c06c5cd740..ea12d829c64ec 100644
--- a/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js
+++ b/tests/baselines/reference/mutuallyRecursiveGenericBaseTypes2.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/mutuallyRecursiveInference.js b/tests/baselines/reference/mutuallyRecursiveInference.js
index 5a87854a09b47..30826e4fa9c3b 100644
--- a/tests/baselines/reference/mutuallyRecursiveInference.js
+++ b/tests/baselines/reference/mutuallyRecursiveInference.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/narrowByInstanceof.js b/tests/baselines/reference/narrowByInstanceof.js
index 81a74a5b07ce7..750d6cd5ab4d5 100644
--- a/tests/baselines/reference/narrowByInstanceof.js
+++ b/tests/baselines/reference/narrowByInstanceof.js
@@ -85,7 +85,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/narrowingOfDottedNames.js b/tests/baselines/reference/narrowingOfDottedNames.js
index b0773a139d0cd..21a20e6492aab 100644
--- a/tests/baselines/reference/narrowingOfDottedNames.js
+++ b/tests/baselines/reference/narrowingOfDottedNames.js
@@ -107,7 +107,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/nestedSuperCallEmit.js b/tests/baselines/reference/nestedSuperCallEmit.js
index 705323a4db188..b1bf4d01fa8ec 100644
--- a/tests/baselines/reference/nestedSuperCallEmit.js
+++ b/tests/baselines/reference/nestedSuperCallEmit.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/neverReturningFunctions1.js b/tests/baselines/reference/neverReturningFunctions1.js
index 2f0299db4e991..0bb6d71b6e81a 100644
--- a/tests/baselines/reference/neverReturningFunctions1.js
+++ b/tests/baselines/reference/neverReturningFunctions1.js
@@ -278,7 +278,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/newTarget.es5.js b/tests/baselines/reference/newTarget.es5.js
index a499e83be5b06..473a783a96a57 100644
--- a/tests/baselines/reference/newTarget.es5.js
+++ b/tests/baselines/reference/newTarget.es5.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/noCrashOnMixin.js b/tests/baselines/reference/noCrashOnMixin.js
index 615fdf53324c1..e309727e923ff 100644
--- a/tests/baselines/reference/noCrashOnMixin.js
+++ b/tests/baselines/reference/noCrashOnMixin.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js
index 3f0c21591914d..57c74df7e99e5 100644
--- a/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js
+++ b/tests/baselines/reference/noImplicitAnyMissingGetAccessor.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js b/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js
index 1284912c9754d..91fbc263e08d5 100644
--- a/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js
+++ b/tests/baselines/reference/noImplicitAnyMissingSetAccessor.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js
index ae96b1fd1eae3..429d75f53958d 100644
--- a/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js
+++ b/tests/baselines/reference/nonGenericClassExtendingGenericClassWithAny.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js
index fdcd01c67ec38..d4f6745f5e962 100644
--- a/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js
+++ b/tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.js
@@ -60,7 +60,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/numericIndexerConstraint3.js b/tests/baselines/reference/numericIndexerConstraint3.js
index 68d085fa3e967..7b440313ce755 100644
--- a/tests/baselines/reference/numericIndexerConstraint3.js
+++ b/tests/baselines/reference/numericIndexerConstraint3.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/numericIndexerConstraint4.js b/tests/baselines/reference/numericIndexerConstraint4.js
index ed8c4c3c07482..fb2fc65a2f33a 100644
--- a/tests/baselines/reference/numericIndexerConstraint4.js
+++ b/tests/baselines/reference/numericIndexerConstraint4.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/numericIndexerTyping2.js b/tests/baselines/reference/numericIndexerTyping2.js
index 0506bdb6e0270..7b61ccd4de153 100644
--- a/tests/baselines/reference/numericIndexerTyping2.js
+++ b/tests/baselines/reference/numericIndexerTyping2.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectCreationOfElementAccessExpression.js b/tests/baselines/reference/objectCreationOfElementAccessExpression.js
index 0ad46eebe3035..54333f008ac08 100644
--- a/tests/baselines/reference/objectCreationOfElementAccessExpression.js
+++ b/tests/baselines/reference/objectCreationOfElementAccessExpression.js
@@ -69,7 +69,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js
index 9fbebdecc7834..ebed26f46a8be 100644
--- a/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js
+++ b/tests/baselines/reference/objectTypeHidingMembersOfExtendedObject.js
@@ -68,7 +68,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js
index 50d17add0ad7b..2304f7ceb9953 100644
--- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js
+++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers1.js
@@ -137,7 +137,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js
index 322fc5e1a4f1f..dd4a266fc2133 100644
--- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js
+++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers2.js
@@ -140,7 +140,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js
index 4c64d0998e246..efb4ed49bc817 100644
--- a/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js
+++ b/tests/baselines/reference/objectTypesIdentityWithNumericIndexers3.js
@@ -137,7 +137,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates.js b/tests/baselines/reference/objectTypesIdentityWithPrivates.js
index efd78c55751f4..800424b07b024 100644
--- a/tests/baselines/reference/objectTypesIdentityWithPrivates.js
+++ b/tests/baselines/reference/objectTypesIdentityWithPrivates.js
@@ -135,7 +135,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates2.js b/tests/baselines/reference/objectTypesIdentityWithPrivates2.js
index 29d783254f6cd..9f846bd676007 100644
--- a/tests/baselines/reference/objectTypesIdentityWithPrivates2.js
+++ b/tests/baselines/reference/objectTypesIdentityWithPrivates2.js
@@ -53,7 +53,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithPrivates3.js b/tests/baselines/reference/objectTypesIdentityWithPrivates3.js
index 17223da04f9ba..3b0997f488aff 100644
--- a/tests/baselines/reference/objectTypesIdentityWithPrivates3.js
+++ b/tests/baselines/reference/objectTypesIdentityWithPrivates3.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js
index da9760fbf31de..9b45a20c367ec 100644
--- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js
+++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers.js
@@ -137,7 +137,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js
index 4eddffa012c75..454f1b1911d6f 100644
--- a/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js
+++ b/tests/baselines/reference/objectTypesIdentityWithStringIndexers2.js
@@ -140,7 +140,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/optionalConstructorArgInSuper.js b/tests/baselines/reference/optionalConstructorArgInSuper.js
index bd60c68bb05e3..f74e32b912f3f 100644
--- a/tests/baselines/reference/optionalConstructorArgInSuper.js
+++ b/tests/baselines/reference/optionalConstructorArgInSuper.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/optionalMethods.js b/tests/baselines/reference/optionalMethods.js
index b82fed9387b8f..b455b0a1a035e 100644
--- a/tests/baselines/reference/optionalMethods.js
+++ b/tests/baselines/reference/optionalMethods.js
@@ -70,7 +70,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/optionalParamArgsTest.js b/tests/baselines/reference/optionalParamArgsTest.js
index c55ce361a45d0..02e9e164c613f 100644
--- a/tests/baselines/reference/optionalParamArgsTest.js
+++ b/tests/baselines/reference/optionalParamArgsTest.js
@@ -138,7 +138,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/optionalParamInOverride.js b/tests/baselines/reference/optionalParamInOverride.js
index 30026b27b1183..73d7b65429afd 100644
--- a/tests/baselines/reference/optionalParamInOverride.js
+++ b/tests/baselines/reference/optionalParamInOverride.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/optionalParameterProperty.js b/tests/baselines/reference/optionalParameterProperty.js
index 071841946d2a4..6cdce6d460a60 100644
--- a/tests/baselines/reference/optionalParameterProperty.js
+++ b/tests/baselines/reference/optionalParameterProperty.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/outModuleConcatAmd.js b/tests/baselines/reference/outModuleConcatAmd.js
index 3c08e9ce630ca..774715b83dca4 100644
--- a/tests/baselines/reference/outModuleConcatAmd.js
+++ b/tests/baselines/reference/outModuleConcatAmd.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/outModuleConcatAmd.js.map b/tests/baselines/reference/outModuleConcatAmd.js.map
index 906fd71ff795a..119a54916c742 100644
--- a/tests/baselines/reference/outModuleConcatAmd.js.map
+++ b/tests/baselines/reference/outModuleConcatAmd.js.map
@@ -1,3 +1,3 @@
//// [all.js.map]
-{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;IAAA;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,cAAC;;;;;;ICCd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"}
-//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCmRlZmluZSgicmVmL2EiLCBbInJlcXVpcmUiLCAiZXhwb3J0cyJdLCBmdW5jdGlvbiAocmVxdWlyZSwgZXhwb3J0cykgew0KICAgICJ1c2Ugc3RyaWN0IjsNCiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgIl9fZXNNb2R1bGUiLCB7IHZhbHVlOiB0cnVlIH0pOw0KICAgIGV4cG9ydHMuQSA9IHZvaWQgMDsNCiAgICB2YXIgQSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgZnVuY3Rpb24gQSgpIHsNCiAgICAgICAgfQ0KICAgICAgICByZXR1cm4gQTsNCiAgICB9KCkpOw0KICAgIGV4cG9ydHMuQSA9IEE7DQp9KTsNCmRlZmluZSgiYiIsIFsicmVxdWlyZSIsICJleHBvcnRzIiwgInJlZi9hIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzLCBhXzEpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCiAgICBleHBvcnRzLkIgPSB2b2lkIDA7DQogICAgdmFyIEIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgICAgIF9fZXh0ZW5kcyhCLCBfc3VwZXIpOw0KICAgICAgICBmdW5jdGlvbiBCKCkgew0KICAgICAgICAgICAgcmV0dXJuIF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiBCOw0KICAgIH0oYV8xLkEpKTsNCiAgICBleHBvcnRzLkIgPSBCOw0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2EudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7SUFBQTtRQUFBO1FBQWlCLENBQUM7UUFBRCxRQUFDO0lBQUQsQ0FBQyxBQUFsQixJQUFrQjtJQUFMLGNBQUM7Ozs7OztJQ0NkO1FBQXVCLHFCQUFDO1FBQXhCOztRQUEyQixDQUFDO1FBQUQsUUFBQztJQUFELENBQUMsQUFBNUIsQ0FBdUIsS0FBQyxHQUFJO0lBQWYsY0FBQyJ9,ZXhwb3J0IGNsYXNzIEEgeyB9Cg==,aW1wb3J0IHtBfSBmcm9tICIuL3JlZi9hIjsKZXhwb3J0IGNsYXNzIEIgZXh0ZW5kcyBBIHsgfQ==
+{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;QAAA;QAAiB,CAAC;QAAD,QAAC;IAAD,CAAC,AAAlB,IAAkB;IAAL,cAAC;;;;;;ICCd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7DQogICAgICAgICAgICBpZiAoT2JqZWN0LmRlZmluZVByb3BlcnR5KSB7DQogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICJjb25zdHJ1Y3RvciIsIHsNCiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGQsDQogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLA0KICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwNCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlDQogICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgIHRoaXMuY29uc3RydWN0b3IgPSBkOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCmRlZmluZSgicmVmL2EiLCBbInJlcXVpcmUiLCAiZXhwb3J0cyJdLCBmdW5jdGlvbiAocmVxdWlyZSwgZXhwb3J0cykgew0KICAgICJ1c2Ugc3RyaWN0IjsNCiAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkoZXhwb3J0cywgIl9fZXNNb2R1bGUiLCB7IHZhbHVlOiB0cnVlIH0pOw0KICAgIGV4cG9ydHMuQSA9IHZvaWQgMDsNCiAgICB2YXIgQSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgZnVuY3Rpb24gQSgpIHsNCiAgICAgICAgfQ0KICAgICAgICByZXR1cm4gQTsNCiAgICB9KCkpOw0KICAgIGV4cG9ydHMuQSA9IEE7DQp9KTsNCmRlZmluZSgiYiIsIFsicmVxdWlyZSIsICJleHBvcnRzIiwgInJlZi9hIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzLCBhXzEpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCiAgICBleHBvcnRzLkIgPSB2b2lkIDA7DQogICAgdmFyIEIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgICAgIF9fZXh0ZW5kcyhCLCBfc3VwZXIpOw0KICAgICAgICBmdW5jdGlvbiBCKCkgew0KICAgICAgICAgICAgcmV0dXJuIF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiBCOw0KICAgIH0oYV8xLkEpKTsNCiAgICBleHBvcnRzLkIgPSBCOw0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2EudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUFBO1FBQUE7UUFBaUIsQ0FBQztRQUFELFFBQUM7SUFBRCxDQUFDLEFBQWxCLElBQWtCO0lBQUwsY0FBQzs7Ozs7O0lDQ2Q7UUFBdUIscUJBQUM7UUFBeEI7O1FBQTJCLENBQUM7UUFBRCxRQUFDO0lBQUQsQ0FBQyxBQUE1QixDQUF1QixLQUFDLEdBQUk7SUFBZixjQUFDIn0=,ZXhwb3J0IGNsYXNzIEEgeyB9Cg==,aW1wb3J0IHtBfSBmcm9tICIuL3JlZi9hIjsKZXhwb3J0IGNsYXNzIEIgZXh0ZW5kcyBBIHsgfQ==
diff --git a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt b/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt
index 2c67630e99123..9e3b831825724 100644
--- a/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt
+++ b/tests/baselines/reference/outModuleConcatAmd.sourcemap.txt
@@ -19,7 +19,18 @@ sourceFile:ref/a.ts
>>> if (typeof b !== "function" && b !== null)
>>> throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
>>> extendStatics(d, b);
->>> function __() { this.constructor = d; }
+>>> function __() {
+>>> if (Object.defineProperty) {
+>>> Object.defineProperty(this, "constructor", {
+>>> value: d,
+>>> writable: true,
+>>> enumerable: false,
+>>> configurable: true
+>>> });
+>>> } else {
+>>> this.constructor = d;
+>>> }
+>>> }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>> };
>>>})();
@@ -31,13 +42,13 @@ sourceFile:ref/a.ts
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(20, 5) Source(1, 1) + SourceIndex(0)
+1 >Emitted(31, 5) Source(1, 1) + SourceIndex(0)
---
>>> function A() {
1->^^^^^^^^
2 > ^^->
1->
-1->Emitted(21, 9) Source(1, 1) + SourceIndex(0)
+1->Emitted(32, 9) Source(1, 1) + SourceIndex(0)
---
>>> }
1->^^^^^^^^
@@ -45,16 +56,16 @@ sourceFile:ref/a.ts
3 > ^^^^^^^^^->
1->export class A {
2 > }
-1->Emitted(22, 9) Source(1, 18) + SourceIndex(0)
-2 >Emitted(22, 10) Source(1, 19) + SourceIndex(0)
+1->Emitted(33, 9) Source(1, 18) + SourceIndex(0)
+2 >Emitted(33, 10) Source(1, 19) + SourceIndex(0)
---
>>> return A;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
-1->Emitted(23, 9) Source(1, 18) + SourceIndex(0)
-2 >Emitted(23, 17) Source(1, 19) + SourceIndex(0)
+1->Emitted(34, 9) Source(1, 18) + SourceIndex(0)
+2 >Emitted(34, 17) Source(1, 19) + SourceIndex(0)
---
>>> }());
1 >^^^^
@@ -66,18 +77,18 @@ sourceFile:ref/a.ts
2 > }
3 >
4 > export class A { }
-1 >Emitted(24, 5) Source(1, 18) + SourceIndex(0)
-2 >Emitted(24, 6) Source(1, 19) + SourceIndex(0)
-3 >Emitted(24, 6) Source(1, 1) + SourceIndex(0)
-4 >Emitted(24, 10) Source(1, 19) + SourceIndex(0)
+1 >Emitted(35, 5) Source(1, 18) + SourceIndex(0)
+2 >Emitted(35, 6) Source(1, 19) + SourceIndex(0)
+3 >Emitted(35, 6) Source(1, 1) + SourceIndex(0)
+4 >Emitted(35, 10) Source(1, 19) + SourceIndex(0)
---
>>> exports.A = A;
1->^^^^
2 > ^^^^^^^^^^^^^^
1->
2 > A
-1->Emitted(25, 5) Source(1, 14) + SourceIndex(0)
-2 >Emitted(25, 19) Source(1, 15) + SourceIndex(0)
+1->Emitted(36, 5) Source(1, 14) + SourceIndex(0)
+2 >Emitted(36, 19) Source(1, 15) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:all.js
@@ -93,21 +104,21 @@ sourceFile:b.ts
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >import {A} from "./ref/a";
>
-1 >Emitted(31, 5) Source(2, 1) + SourceIndex(1)
+1 >Emitted(42, 5) Source(2, 1) + SourceIndex(1)
---
>>> __extends(B, _super);
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
-1->Emitted(32, 9) Source(2, 24) + SourceIndex(1)
-2 >Emitted(32, 30) Source(2, 25) + SourceIndex(1)
+1->Emitted(43, 9) Source(2, 24) + SourceIndex(1)
+2 >Emitted(43, 30) Source(2, 25) + SourceIndex(1)
---
>>> function B() {
1 >^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(33, 9) Source(2, 1) + SourceIndex(1)
+1 >Emitted(44, 9) Source(2, 1) + SourceIndex(1)
---
>>> return _super !== null && _super.apply(this, arguments) || this;
>>> }
@@ -116,16 +127,16 @@ sourceFile:b.ts
3 > ^^^^^^^^^->
1->export class B extends A {
2 > }
-1->Emitted(35, 9) Source(2, 28) + SourceIndex(1)
-2 >Emitted(35, 10) Source(2, 29) + SourceIndex(1)
+1->Emitted(46, 9) Source(2, 28) + SourceIndex(1)
+2 >Emitted(46, 10) Source(2, 29) + SourceIndex(1)
---
>>> return B;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
-1->Emitted(36, 9) Source(2, 28) + SourceIndex(1)
-2 >Emitted(36, 17) Source(2, 29) + SourceIndex(1)
+1->Emitted(47, 9) Source(2, 28) + SourceIndex(1)
+2 >Emitted(47, 17) Source(2, 29) + SourceIndex(1)
---
>>> }(a_1.A));
1 >^^^^
@@ -141,20 +152,20 @@ sourceFile:b.ts
4 > export class B extends
5 > A
6 > { }
-1 >Emitted(37, 5) Source(2, 28) + SourceIndex(1)
-2 >Emitted(37, 6) Source(2, 29) + SourceIndex(1)
-3 >Emitted(37, 6) Source(2, 1) + SourceIndex(1)
-4 >Emitted(37, 7) Source(2, 24) + SourceIndex(1)
-5 >Emitted(37, 12) Source(2, 25) + SourceIndex(1)
-6 >Emitted(37, 15) Source(2, 29) + SourceIndex(1)
+1 >Emitted(48, 5) Source(2, 28) + SourceIndex(1)
+2 >Emitted(48, 6) Source(2, 29) + SourceIndex(1)
+3 >Emitted(48, 6) Source(2, 1) + SourceIndex(1)
+4 >Emitted(48, 7) Source(2, 24) + SourceIndex(1)
+5 >Emitted(48, 12) Source(2, 25) + SourceIndex(1)
+6 >Emitted(48, 15) Source(2, 29) + SourceIndex(1)
---
>>> exports.B = B;
1->^^^^
2 > ^^^^^^^^^^^^^^
1->
2 > B
-1->Emitted(38, 5) Source(2, 14) + SourceIndex(1)
-2 >Emitted(38, 19) Source(2, 15) + SourceIndex(1)
+1->Emitted(49, 5) Source(2, 14) + SourceIndex(1)
+2 >Emitted(49, 19) Source(2, 15) + SourceIndex(1)
---
>>>});
>>>//# sourceMappingURL=all.js.map
\ No newline at end of file
diff --git a/tests/baselines/reference/outModuleConcatSystem.js b/tests/baselines/reference/outModuleConcatSystem.js
index ad16bfd075e51..037a267063372 100644
--- a/tests/baselines/reference/outModuleConcatSystem.js
+++ b/tests/baselines/reference/outModuleConcatSystem.js
@@ -19,7 +19,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/outModuleConcatSystem.js.map b/tests/baselines/reference/outModuleConcatSystem.js.map
index 51a8455ab60e3..c3ac6434fe872 100644
--- a/tests/baselines/reference/outModuleConcatSystem.js.map
+++ b/tests/baselines/reference/outModuleConcatSystem.js.map
@@ -1,3 +1,3 @@
//// [all.js.map]
-{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;YAAA;gBAAA;gBAAiB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAlB,IAAkB;;QAClB,CAAC;;;;;;;;;;;;;;YCAD;gBAAuB,qBAAC;gBAAxB;;gBAA2B,CAAC;gBAAD,QAAC;YAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;;QAAA,CAAC"}
-//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNClN5c3RlbS5yZWdpc3RlcigicmVmL2EiLCBbXSwgZnVuY3Rpb24gKGV4cG9ydHNfMSwgY29udGV4dF8xKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIHZhciBBOw0KICAgIHZhciBfX21vZHVsZU5hbWUgPSBjb250ZXh0XzEgJiYgY29udGV4dF8xLmlkOw0KICAgIHJldHVybiB7DQogICAgICAgIHNldHRlcnM6IFtdLA0KICAgICAgICBleGVjdXRlOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICBBID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgIGZ1bmN0aW9uIEEoKSB7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIHJldHVybiBBOw0KICAgICAgICAgICAgfSgpKTsNCiAgICAgICAgICAgIGV4cG9ydHNfMSgiQSIsIEEpOw0KICAgICAgICB9DQogICAgfTsNCn0pOw0KU3lzdGVtLnJlZ2lzdGVyKCJiIiwgWyJyZWYvYSJdLCBmdW5jdGlvbiAoZXhwb3J0c18yLCBjb250ZXh0XzIpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgdmFyIGFfMSwgQjsNCiAgICB2YXIgX19tb2R1bGVOYW1lID0gY29udGV4dF8yICYmIGNvbnRleHRfMi5pZDsNCiAgICByZXR1cm4gew0KICAgICAgICBzZXR0ZXJzOiBbDQogICAgICAgICAgICBmdW5jdGlvbiAoYV8xXzEpIHsNCiAgICAgICAgICAgICAgICBhXzEgPSBhXzFfMTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgXSwNCiAgICAgICAgZXhlY3V0ZTogZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgQiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uIChfc3VwZXIpIHsNCiAgICAgICAgICAgICAgICBfX2V4dGVuZHMoQiwgX3N1cGVyKTsNCiAgICAgICAgICAgICAgICBmdW5jdGlvbiBCKCkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3N1cGVyICE9PSBudWxsICYmIF9zdXBlci5hcHBseSh0aGlzLCBhcmd1bWVudHMpIHx8IHRoaXM7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIHJldHVybiBCOw0KICAgICAgICAgICAgfShhXzEuQSkpOw0KICAgICAgICAgICAgZXhwb3J0c18yKCJCIiwgQik7DQogICAgICAgIH0NCiAgICB9Ow0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2EudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7WUFBQTtnQkFBQTtnQkFBaUIsQ0FBQztnQkFBRCxRQUFDO1lBQUQsQ0FBQyxBQUFsQixJQUFrQjs7UUFDbEIsQ0FBQzs7Ozs7Ozs7Ozs7Ozs7WUNBRDtnQkFBdUIscUJBQUM7Z0JBQXhCOztnQkFBMkIsQ0FBQztnQkFBRCxRQUFDO1lBQUQsQ0FBQyxBQUE1QixDQUF1QixLQUFDLEdBQUk7O1FBQUEsQ0FBQyJ9,ZXhwb3J0IGNsYXNzIEEgeyB9Cg==,aW1wb3J0IHtBfSBmcm9tICIuL3JlZi9hIjsKZXhwb3J0IGNsYXNzIEIgZXh0ZW5kcyBBIHsgfQ==
+{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAAA;gBAAA;gBAAiB,CAAC;gBAAD,QAAC;YAAD,CAAC,AAAlB,IAAkB;;QAClB,CAAC;;;;;;;;;;;;;;YCAD;gBAAuB,qBAAC;gBAAxB;;gBAA2B,CAAC;gBAAD,QAAC;YAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;;QAAA,CAAC"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7DQogICAgICAgICAgICBpZiAoT2JqZWN0LmRlZmluZVByb3BlcnR5KSB7DQogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICJjb25zdHJ1Y3RvciIsIHsNCiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGQsDQogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLA0KICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwNCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlDQogICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgIHRoaXMuY29uc3RydWN0b3IgPSBkOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNClN5c3RlbS5yZWdpc3RlcigicmVmL2EiLCBbXSwgZnVuY3Rpb24gKGV4cG9ydHNfMSwgY29udGV4dF8xKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIHZhciBBOw0KICAgIHZhciBfX21vZHVsZU5hbWUgPSBjb250ZXh0XzEgJiYgY29udGV4dF8xLmlkOw0KICAgIHJldHVybiB7DQogICAgICAgIHNldHRlcnM6IFtdLA0KICAgICAgICBleGVjdXRlOiBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICBBID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgIGZ1bmN0aW9uIEEoKSB7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIHJldHVybiBBOw0KICAgICAgICAgICAgfSgpKTsNCiAgICAgICAgICAgIGV4cG9ydHNfMSgiQSIsIEEpOw0KICAgICAgICB9DQogICAgfTsNCn0pOw0KU3lzdGVtLnJlZ2lzdGVyKCJiIiwgWyJyZWYvYSJdLCBmdW5jdGlvbiAoZXhwb3J0c18yLCBjb250ZXh0XzIpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgdmFyIGFfMSwgQjsNCiAgICB2YXIgX19tb2R1bGVOYW1lID0gY29udGV4dF8yICYmIGNvbnRleHRfMi5pZDsNCiAgICByZXR1cm4gew0KICAgICAgICBzZXR0ZXJzOiBbDQogICAgICAgICAgICBmdW5jdGlvbiAoYV8xXzEpIHsNCiAgICAgICAgICAgICAgICBhXzEgPSBhXzFfMTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgXSwNCiAgICAgICAgZXhlY3V0ZTogZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgQiA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uIChfc3VwZXIpIHsNCiAgICAgICAgICAgICAgICBfX2V4dGVuZHMoQiwgX3N1cGVyKTsNCiAgICAgICAgICAgICAgICBmdW5jdGlvbiBCKCkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gX3N1cGVyICE9PSBudWxsICYmIF9zdXBlci5hcHBseSh0aGlzLCBhcmd1bWVudHMpIHx8IHRoaXM7DQogICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgIHJldHVybiBCOw0KICAgICAgICAgICAgfShhXzEuQSkpOw0KICAgICAgICAgICAgZXhwb3J0c18yKCJCIiwgQik7DQogICAgICAgIH0NCiAgICB9Ow0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2EudHMiLCJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztZQUFBO2dCQUFBO2dCQUFpQixDQUFDO2dCQUFELFFBQUM7WUFBRCxDQUFDLEFBQWxCLElBQWtCOztRQUNsQixDQUFDOzs7Ozs7Ozs7Ozs7OztZQ0FEO2dCQUF1QixxQkFBQztnQkFBeEI7O2dCQUEyQixDQUFDO2dCQUFELFFBQUM7WUFBRCxDQUFDLEFBQTVCLENBQXVCLEtBQUMsR0FBSTs7UUFBQSxDQUFDIn0=,ZXhwb3J0IGNsYXNzIEEgeyB9Cg==,aW1wb3J0IHtBfSBmcm9tICIuL3JlZi9hIjsKZXhwb3J0IGNsYXNzIEIgZXh0ZW5kcyBBIHsgfQ==
diff --git a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt b/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt
index 21f84e1069dfe..fcfd985616f7a 100644
--- a/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt
+++ b/tests/baselines/reference/outModuleConcatSystem.sourcemap.txt
@@ -19,7 +19,18 @@ sourceFile:ref/a.ts
>>> if (typeof b !== "function" && b !== null)
>>> throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
>>> extendStatics(d, b);
->>> function __() { this.constructor = d; }
+>>> function __() {
+>>> if (Object.defineProperty) {
+>>> Object.defineProperty(this, "constructor", {
+>>> value: d,
+>>> writable: true,
+>>> enumerable: false,
+>>> configurable: true
+>>> });
+>>> } else {
+>>> this.constructor = d;
+>>> }
+>>> }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>> };
>>>})();
@@ -34,13 +45,13 @@ sourceFile:ref/a.ts
1 >^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(23, 13) Source(1, 1) + SourceIndex(0)
+1 >Emitted(34, 13) Source(1, 1) + SourceIndex(0)
---
>>> function A() {
1->^^^^^^^^^^^^^^^^
2 > ^^->
1->
-1->Emitted(24, 17) Source(1, 1) + SourceIndex(0)
+1->Emitted(35, 17) Source(1, 1) + SourceIndex(0)
---
>>> }
1->^^^^^^^^^^^^^^^^
@@ -48,16 +59,16 @@ sourceFile:ref/a.ts
3 > ^^^^^^^^^->
1->export class A {
2 > }
-1->Emitted(25, 17) Source(1, 18) + SourceIndex(0)
-2 >Emitted(25, 18) Source(1, 19) + SourceIndex(0)
+1->Emitted(36, 17) Source(1, 18) + SourceIndex(0)
+2 >Emitted(36, 18) Source(1, 19) + SourceIndex(0)
---
>>> return A;
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
-1->Emitted(26, 17) Source(1, 18) + SourceIndex(0)
-2 >Emitted(26, 25) Source(1, 19) + SourceIndex(0)
+1->Emitted(37, 17) Source(1, 18) + SourceIndex(0)
+2 >Emitted(37, 25) Source(1, 19) + SourceIndex(0)
---
>>> }());
1 >^^^^^^^^^^^^
@@ -69,10 +80,10 @@ sourceFile:ref/a.ts
2 > }
3 >
4 > export class A { }
-1 >Emitted(27, 13) Source(1, 18) + SourceIndex(0)
-2 >Emitted(27, 14) Source(1, 19) + SourceIndex(0)
-3 >Emitted(27, 14) Source(1, 1) + SourceIndex(0)
-4 >Emitted(27, 18) Source(1, 19) + SourceIndex(0)
+1 >Emitted(38, 13) Source(1, 18) + SourceIndex(0)
+2 >Emitted(38, 14) Source(1, 19) + SourceIndex(0)
+3 >Emitted(38, 14) Source(1, 1) + SourceIndex(0)
+4 >Emitted(38, 18) Source(1, 19) + SourceIndex(0)
---
>>> exports_1("A", A);
>>> }
@@ -81,8 +92,8 @@ sourceFile:ref/a.ts
1->
>
2 >
-1->Emitted(29, 9) Source(2, 1) + SourceIndex(0)
-2 >Emitted(29, 10) Source(2, 2) + SourceIndex(0)
+1->Emitted(40, 9) Source(2, 1) + SourceIndex(0)
+2 >Emitted(40, 10) Source(2, 2) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:all.js
@@ -106,21 +117,21 @@ sourceFile:b.ts
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >import {A} from "./ref/a";
>
-1 >Emitted(43, 13) Source(2, 1) + SourceIndex(1)
+1 >Emitted(54, 13) Source(2, 1) + SourceIndex(1)
---
>>> __extends(B, _super);
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
-1->Emitted(44, 17) Source(2, 24) + SourceIndex(1)
-2 >Emitted(44, 38) Source(2, 25) + SourceIndex(1)
+1->Emitted(55, 17) Source(2, 24) + SourceIndex(1)
+2 >Emitted(55, 38) Source(2, 25) + SourceIndex(1)
---
>>> function B() {
1 >^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(45, 17) Source(2, 1) + SourceIndex(1)
+1 >Emitted(56, 17) Source(2, 1) + SourceIndex(1)
---
>>> return _super !== null && _super.apply(this, arguments) || this;
>>> }
@@ -129,16 +140,16 @@ sourceFile:b.ts
3 > ^^^^^^^^^->
1->export class B extends A {
2 > }
-1->Emitted(47, 17) Source(2, 28) + SourceIndex(1)
-2 >Emitted(47, 18) Source(2, 29) + SourceIndex(1)
+1->Emitted(58, 17) Source(2, 28) + SourceIndex(1)
+2 >Emitted(58, 18) Source(2, 29) + SourceIndex(1)
---
>>> return B;
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
-1->Emitted(48, 17) Source(2, 28) + SourceIndex(1)
-2 >Emitted(48, 25) Source(2, 29) + SourceIndex(1)
+1->Emitted(59, 17) Source(2, 28) + SourceIndex(1)
+2 >Emitted(59, 25) Source(2, 29) + SourceIndex(1)
---
>>> }(a_1.A));
1 >^^^^^^^^^^^^
@@ -154,12 +165,12 @@ sourceFile:b.ts
4 > export class B extends
5 > A
6 > { }
-1 >Emitted(49, 13) Source(2, 28) + SourceIndex(1)
-2 >Emitted(49, 14) Source(2, 29) + SourceIndex(1)
-3 >Emitted(49, 14) Source(2, 1) + SourceIndex(1)
-4 >Emitted(49, 15) Source(2, 24) + SourceIndex(1)
-5 >Emitted(49, 20) Source(2, 25) + SourceIndex(1)
-6 >Emitted(49, 23) Source(2, 29) + SourceIndex(1)
+1 >Emitted(60, 13) Source(2, 28) + SourceIndex(1)
+2 >Emitted(60, 14) Source(2, 29) + SourceIndex(1)
+3 >Emitted(60, 14) Source(2, 1) + SourceIndex(1)
+4 >Emitted(60, 15) Source(2, 24) + SourceIndex(1)
+5 >Emitted(60, 20) Source(2, 25) + SourceIndex(1)
+6 >Emitted(60, 23) Source(2, 29) + SourceIndex(1)
---
>>> exports_2("B", B);
>>> }
@@ -167,8 +178,8 @@ sourceFile:b.ts
2 > ^
1->
2 >
-1->Emitted(51, 9) Source(2, 29) + SourceIndex(1)
-2 >Emitted(51, 10) Source(2, 30) + SourceIndex(1)
+1->Emitted(62, 9) Source(2, 29) + SourceIndex(1)
+2 >Emitted(62, 10) Source(2, 30) + SourceIndex(1)
---
>>> };
>>>});
diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js b/tests/baselines/reference/outModuleTripleSlashRefs.js
index 61027767a010e..607f7f668b6be 100644
--- a/tests/baselines/reference/outModuleTripleSlashRefs.js
+++ b/tests/baselines/reference/outModuleTripleSlashRefs.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.js.map b/tests/baselines/reference/outModuleTripleSlashRefs.js.map
index ae38a0fe94cc6..a7c4aa825d7c6 100644
--- a/tests/baselines/reference/outModuleTripleSlashRefs.js.map
+++ b/tests/baselines/reference/outModuleTripleSlashRefs.js.map
@@ -1,3 +1,3 @@
//// [all.js.map]
-{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/b.ts","ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC;IAAA;IAEA,CAAC;IAAD,UAAC;AAAD,CAAC,AAFD,IAEC;;;;;ICHD,+BAA+B;IAC/B;QAAA;QAEA,CAAC;QAAD,QAAC;IAAD,CAAC,AAFD,IAEC;IAFY,cAAC;;;;;;ICAd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"}
-//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCi8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vYy5kLnRzIiAvPg0KdmFyIEZvbyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICBmdW5jdGlvbiBGb28oKSB7DQogICAgfQ0KICAgIHJldHVybiBGb287DQp9KCkpOw0KZGVmaW5lKCJyZWYvYSIsIFsicmVxdWlyZSIsICJleHBvcnRzIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAiX19lc01vZHVsZSIsIHsgdmFsdWU6IHRydWUgfSk7DQogICAgZXhwb3J0cy5BID0gdm9pZCAwOw0KICAgIC8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vYi50cyIgLz4NCiAgICB2YXIgQSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgZnVuY3Rpb24gQSgpIHsNCiAgICAgICAgfQ0KICAgICAgICByZXR1cm4gQTsNCiAgICB9KCkpOw0KICAgIGV4cG9ydHMuQSA9IEE7DQp9KTsNCmRlZmluZSgiYiIsIFsicmVxdWlyZSIsICJleHBvcnRzIiwgInJlZi9hIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzLCBhXzEpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCiAgICBleHBvcnRzLkIgPSB2b2lkIDA7DQogICAgdmFyIEIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgICAgIF9fZXh0ZW5kcyhCLCBfc3VwZXIpOw0KICAgICAgICBmdW5jdGlvbiBCKCkgew0KICAgICAgICAgICAgcmV0dXJuIF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiBCOw0KICAgIH0oYV8xLkEpKTsNCiAgICBleHBvcnRzLkIgPSBCOw0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2IudHMiLCJyZWYvYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsaUNBQWlDO0FBQ2pDO0lBQUE7SUFFQSxDQUFDO0lBQUQsVUFBQztBQUFELENBQUMsQUFGRCxJQUVDOzs7OztJQ0hELCtCQUErQjtJQUMvQjtRQUFBO1FBRUEsQ0FBQztRQUFELFFBQUM7SUFBRCxDQUFDLEFBRkQsSUFFQztJQUZZLGNBQUM7Ozs7OztJQ0FkO1FBQXVCLHFCQUFDO1FBQXhCOztRQUEyQixDQUFDO1FBQUQsUUFBQztJQUFELENBQUMsQUFBNUIsQ0FBdUIsS0FBQyxHQUFJO0lBQWYsY0FBQyJ9,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+CmNsYXNzIEZvbyB7CgltZW1iZXI6IEJhcjsKfQpkZWNsYXJlIHZhciBHbG9iYWxGb286IEZvbzsK,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9iLnRzIiAvPgpleHBvcnQgY2xhc3MgQSB7CgltZW1iZXI6IHR5cGVvZiBHbG9iYWxGb287Cn0K,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+CmNsYXNzIEZvbyB7CgltZW1iZXI6IEJhcjsKfQpkZWNsYXJlIHZhciBHbG9iYWxGb286IEZvbzsK
+{"version":3,"file":"all.js","sourceRoot":"","sources":["ref/b.ts","ref/a.ts","b.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAiC;AACjC;IAAA;IAEA,CAAC;IAAD,UAAC;AAAD,CAAC,AAFD,IAEC;;;;;ICHD,+BAA+B;IAC/B;QAAA;QAEA,CAAC;QAAD,QAAC;IAAD,CAAC,AAFD,IAEC;IAFY,cAAC;;;;;;ICAd;QAAuB,qBAAC;QAAxB;;QAA2B,CAAC;QAAD,QAAC;IAAD,CAAC,AAA5B,CAAuB,KAAC,GAAI;IAAf,cAAC"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7DQogICAgICAgICAgICBpZiAoT2JqZWN0LmRlZmluZVByb3BlcnR5KSB7DQogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICJjb25zdHJ1Y3RvciIsIHsNCiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGQsDQogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLA0KICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwNCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlDQogICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgIHRoaXMuY29uc3RydWN0b3IgPSBkOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCi8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vYy5kLnRzIiAvPg0KdmFyIEZvbyA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICBmdW5jdGlvbiBGb28oKSB7DQogICAgfQ0KICAgIHJldHVybiBGb287DQp9KCkpOw0KZGVmaW5lKCJyZWYvYSIsIFsicmVxdWlyZSIsICJleHBvcnRzIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzKSB7DQogICAgInVzZSBzdHJpY3QiOw0KICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0eShleHBvcnRzLCAiX19lc01vZHVsZSIsIHsgdmFsdWU6IHRydWUgfSk7DQogICAgZXhwb3J0cy5BID0gdm9pZCAwOw0KICAgIC8vLyA8cmVmZXJlbmNlIHBhdGg9Ii4vYi50cyIgLz4NCiAgICB2YXIgQSA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgZnVuY3Rpb24gQSgpIHsNCiAgICAgICAgfQ0KICAgICAgICByZXR1cm4gQTsNCiAgICB9KCkpOw0KICAgIGV4cG9ydHMuQSA9IEE7DQp9KTsNCmRlZmluZSgiYiIsIFsicmVxdWlyZSIsICJleHBvcnRzIiwgInJlZi9hIl0sIGZ1bmN0aW9uIChyZXF1aXJlLCBleHBvcnRzLCBhXzEpIHsNCiAgICAidXNlIHN0cmljdCI7DQogICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCiAgICBleHBvcnRzLkIgPSB2b2lkIDA7DQogICAgdmFyIEIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgICAgIF9fZXh0ZW5kcyhCLCBfc3VwZXIpOw0KICAgICAgICBmdW5jdGlvbiBCKCkgew0KICAgICAgICAgICAgcmV0dXJuIF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICB9DQogICAgICAgIHJldHVybiBCOw0KICAgIH0oYV8xLkEpKTsNCiAgICBleHBvcnRzLkIgPSBCOw0KfSk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1hbGwuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVmL2IudHMiLCJyZWYvYS50cyIsImIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxpQ0FBaUM7QUFDakM7SUFBQTtJQUVBLENBQUM7SUFBRCxVQUFDO0FBQUQsQ0FBQyxBQUZELElBRUM7Ozs7O0lDSEQsK0JBQStCO0lBQy9CO1FBQUE7UUFFQSxDQUFDO1FBQUQsUUFBQztJQUFELENBQUMsQUFGRCxJQUVDO0lBRlksY0FBQzs7Ozs7O0lDQWQ7UUFBdUIscUJBQUM7UUFBeEI7O1FBQTJCLENBQUM7UUFBRCxRQUFDO0lBQUQsQ0FBQyxBQUE1QixDQUF1QixLQUFDLEdBQUk7SUFBZixjQUFDIn0=,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+CmNsYXNzIEZvbyB7CgltZW1iZXI6IEJhcjsKfQpkZWNsYXJlIHZhciBHbG9iYWxGb286IEZvbzsK,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9iLnRzIiAvPgpleHBvcnQgY2xhc3MgQSB7CgltZW1iZXI6IHR5cGVvZiBHbG9iYWxGb287Cn0K,Ly8vIDxyZWZlcmVuY2UgcGF0aD0iLi9jLmQudHMiIC8+CmNsYXNzIEZvbyB7CgltZW1iZXI6IEJhcjsKfQpkZWNsYXJlIHZhciBHbG9iYWxGb286IEZvbzsK
diff --git a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt b/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt
index 0e5b8630ceeb1..faf6a1dee308c 100644
--- a/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt
+++ b/tests/baselines/reference/outModuleTripleSlashRefs.sourcemap.txt
@@ -19,7 +19,18 @@ sourceFile:ref/b.ts
>>> if (typeof b !== "function" && b !== null)
>>> throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
>>> extendStatics(d, b);
->>> function __() { this.constructor = d; }
+>>> function __() {
+>>> if (Object.defineProperty) {
+>>> Object.defineProperty(this, "constructor", {
+>>> value: d,
+>>> writable: true,
+>>> enumerable: false,
+>>> configurable: true
+>>> });
+>>> } else {
+>>> this.constructor = d;
+>>> }
+>>> }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>> };
>>>})();
@@ -29,21 +40,21 @@ sourceFile:ref/b.ts
3 > ^^^^^^->
1 >
2 >///
-1 >Emitted(16, 1) Source(1, 1) + SourceIndex(0)
-2 >Emitted(16, 34) Source(1, 34) + SourceIndex(0)
+1 >Emitted(27, 1) Source(1, 1) + SourceIndex(0)
+2 >Emitted(27, 34) Source(1, 34) + SourceIndex(0)
---
>>>var Foo = /** @class */ (function () {
1->
2 >^^^^^^^^^^^^^^^^^^^^^->
1->
>
-1->Emitted(17, 1) Source(2, 1) + SourceIndex(0)
+1->Emitted(28, 1) Source(2, 1) + SourceIndex(0)
---
>>> function Foo() {
1->^^^^
2 > ^^->
1->
-1->Emitted(18, 5) Source(2, 1) + SourceIndex(0)
+1->Emitted(29, 5) Source(2, 1) + SourceIndex(0)
---
>>> }
1->^^^^
@@ -53,16 +64,16 @@ sourceFile:ref/b.ts
> member: Bar;
>
2 > }
-1->Emitted(19, 5) Source(4, 1) + SourceIndex(0)
-2 >Emitted(19, 6) Source(4, 2) + SourceIndex(0)
+1->Emitted(30, 5) Source(4, 1) + SourceIndex(0)
+2 >Emitted(30, 6) Source(4, 2) + SourceIndex(0)
---
>>> return Foo;
1->^^^^
2 > ^^^^^^^^^^
1->
2 > }
-1->Emitted(20, 5) Source(4, 1) + SourceIndex(0)
-2 >Emitted(20, 15) Source(4, 2) + SourceIndex(0)
+1->Emitted(31, 5) Source(4, 1) + SourceIndex(0)
+2 >Emitted(31, 15) Source(4, 2) + SourceIndex(0)
---
>>>}());
1 >
@@ -76,10 +87,10 @@ sourceFile:ref/b.ts
4 > class Foo {
> member: Bar;
> }
-1 >Emitted(21, 1) Source(4, 1) + SourceIndex(0)
-2 >Emitted(21, 2) Source(4, 2) + SourceIndex(0)
-3 >Emitted(21, 2) Source(2, 1) + SourceIndex(0)
-4 >Emitted(21, 6) Source(4, 2) + SourceIndex(0)
+1 >Emitted(32, 1) Source(4, 1) + SourceIndex(0)
+2 >Emitted(32, 2) Source(4, 2) + SourceIndex(0)
+3 >Emitted(32, 2) Source(2, 1) + SourceIndex(0)
+4 >Emitted(32, 6) Source(4, 2) + SourceIndex(0)
---
-------------------------------------------------------------------
emittedFile:all.js
@@ -95,21 +106,21 @@ sourceFile:ref/a.ts
3 > ^^^^^^->
1->
2 > ///
-1->Emitted(26, 5) Source(1, 1) + SourceIndex(1)
-2 >Emitted(26, 36) Source(1, 32) + SourceIndex(1)
+1->Emitted(37, 5) Source(1, 1) + SourceIndex(1)
+2 >Emitted(37, 36) Source(1, 32) + SourceIndex(1)
---
>>> var A = /** @class */ (function () {
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^->
1->
>
-1->Emitted(27, 5) Source(2, 1) + SourceIndex(1)
+1->Emitted(38, 5) Source(2, 1) + SourceIndex(1)
---
>>> function A() {
1->^^^^^^^^
2 > ^^->
1->
-1->Emitted(28, 9) Source(2, 1) + SourceIndex(1)
+1->Emitted(39, 9) Source(2, 1) + SourceIndex(1)
---
>>> }
1->^^^^^^^^
@@ -119,16 +130,16 @@ sourceFile:ref/a.ts
> member: typeof GlobalFoo;
>
2 > }
-1->Emitted(29, 9) Source(4, 1) + SourceIndex(1)
-2 >Emitted(29, 10) Source(4, 2) + SourceIndex(1)
+1->Emitted(40, 9) Source(4, 1) + SourceIndex(1)
+2 >Emitted(40, 10) Source(4, 2) + SourceIndex(1)
---
>>> return A;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
-1->Emitted(30, 9) Source(4, 1) + SourceIndex(1)
-2 >Emitted(30, 17) Source(4, 2) + SourceIndex(1)
+1->Emitted(41, 9) Source(4, 1) + SourceIndex(1)
+2 >Emitted(41, 17) Source(4, 2) + SourceIndex(1)
---
>>> }());
1 >^^^^
@@ -142,18 +153,18 @@ sourceFile:ref/a.ts
4 > export class A {
> member: typeof GlobalFoo;
> }
-1 >Emitted(31, 5) Source(4, 1) + SourceIndex(1)
-2 >Emitted(31, 6) Source(4, 2) + SourceIndex(1)
-3 >Emitted(31, 6) Source(2, 1) + SourceIndex(1)
-4 >Emitted(31, 10) Source(4, 2) + SourceIndex(1)
+1 >Emitted(42, 5) Source(4, 1) + SourceIndex(1)
+2 >Emitted(42, 6) Source(4, 2) + SourceIndex(1)
+3 >Emitted(42, 6) Source(2, 1) + SourceIndex(1)
+4 >Emitted(42, 10) Source(4, 2) + SourceIndex(1)
---
>>> exports.A = A;
1->^^^^
2 > ^^^^^^^^^^^^^^
1->
2 > A
-1->Emitted(32, 5) Source(2, 14) + SourceIndex(1)
-2 >Emitted(32, 19) Source(2, 15) + SourceIndex(1)
+1->Emitted(43, 5) Source(2, 14) + SourceIndex(1)
+2 >Emitted(43, 19) Source(2, 15) + SourceIndex(1)
---
-------------------------------------------------------------------
emittedFile:all.js
@@ -169,21 +180,21 @@ sourceFile:b.ts
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >import {A} from "./ref/a";
>
-1 >Emitted(38, 5) Source(2, 1) + SourceIndex(2)
+1 >Emitted(49, 5) Source(2, 1) + SourceIndex(2)
---
>>> __extends(B, _super);
1->^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^
1->export class B extends
2 > A
-1->Emitted(39, 9) Source(2, 24) + SourceIndex(2)
-2 >Emitted(39, 30) Source(2, 25) + SourceIndex(2)
+1->Emitted(50, 9) Source(2, 24) + SourceIndex(2)
+2 >Emitted(50, 30) Source(2, 25) + SourceIndex(2)
---
>>> function B() {
1 >^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(40, 9) Source(2, 1) + SourceIndex(2)
+1 >Emitted(51, 9) Source(2, 1) + SourceIndex(2)
---
>>> return _super !== null && _super.apply(this, arguments) || this;
>>> }
@@ -192,16 +203,16 @@ sourceFile:b.ts
3 > ^^^^^^^^^->
1->export class B extends A {
2 > }
-1->Emitted(42, 9) Source(2, 28) + SourceIndex(2)
-2 >Emitted(42, 10) Source(2, 29) + SourceIndex(2)
+1->Emitted(53, 9) Source(2, 28) + SourceIndex(2)
+2 >Emitted(53, 10) Source(2, 29) + SourceIndex(2)
---
>>> return B;
1->^^^^^^^^
2 > ^^^^^^^^
1->
2 > }
-1->Emitted(43, 9) Source(2, 28) + SourceIndex(2)
-2 >Emitted(43, 17) Source(2, 29) + SourceIndex(2)
+1->Emitted(54, 9) Source(2, 28) + SourceIndex(2)
+2 >Emitted(54, 17) Source(2, 29) + SourceIndex(2)
---
>>> }(a_1.A));
1 >^^^^
@@ -217,20 +228,20 @@ sourceFile:b.ts
4 > export class B extends
5 > A
6 > { }
-1 >Emitted(44, 5) Source(2, 28) + SourceIndex(2)
-2 >Emitted(44, 6) Source(2, 29) + SourceIndex(2)
-3 >Emitted(44, 6) Source(2, 1) + SourceIndex(2)
-4 >Emitted(44, 7) Source(2, 24) + SourceIndex(2)
-5 >Emitted(44, 12) Source(2, 25) + SourceIndex(2)
-6 >Emitted(44, 15) Source(2, 29) + SourceIndex(2)
+1 >Emitted(55, 5) Source(2, 28) + SourceIndex(2)
+2 >Emitted(55, 6) Source(2, 29) + SourceIndex(2)
+3 >Emitted(55, 6) Source(2, 1) + SourceIndex(2)
+4 >Emitted(55, 7) Source(2, 24) + SourceIndex(2)
+5 >Emitted(55, 12) Source(2, 25) + SourceIndex(2)
+6 >Emitted(55, 15) Source(2, 29) + SourceIndex(2)
---
>>> exports.B = B;
1->^^^^
2 > ^^^^^^^^^^^^^^
1->
2 > B
-1->Emitted(45, 5) Source(2, 14) + SourceIndex(2)
-2 >Emitted(45, 19) Source(2, 15) + SourceIndex(2)
+1->Emitted(56, 5) Source(2, 14) + SourceIndex(2)
+2 >Emitted(56, 19) Source(2, 15) + SourceIndex(2)
---
>>>});
>>>//# sourceMappingURL=all.js.map
\ No newline at end of file
diff --git a/tests/baselines/reference/overload1.js b/tests/baselines/reference/overload1.js
index 06fc1e5e68390..e08718dcc48fc 100644
--- a/tests/baselines/reference/overload1.js
+++ b/tests/baselines/reference/overload1.js
@@ -53,7 +53,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks1.js b/tests/baselines/reference/overloadOnConstConstraintChecks1.js
index f4d887859a386..0e4cf4a8e2107 100644
--- a/tests/baselines/reference/overloadOnConstConstraintChecks1.js
+++ b/tests/baselines/reference/overloadOnConstConstraintChecks1.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks2.js b/tests/baselines/reference/overloadOnConstConstraintChecks2.js
index 02f83dd1724a9..65cd427e2e663 100644
--- a/tests/baselines/reference/overloadOnConstConstraintChecks2.js
+++ b/tests/baselines/reference/overloadOnConstConstraintChecks2.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks3.js b/tests/baselines/reference/overloadOnConstConstraintChecks3.js
index 5572746043ed1..abc23a45ff9e4 100644
--- a/tests/baselines/reference/overloadOnConstConstraintChecks3.js
+++ b/tests/baselines/reference/overloadOnConstConstraintChecks3.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadOnConstConstraintChecks4.js b/tests/baselines/reference/overloadOnConstConstraintChecks4.js
index 57db40ed181b4..39f8220a5a3c6 100644
--- a/tests/baselines/reference/overloadOnConstConstraintChecks4.js
+++ b/tests/baselines/reference/overloadOnConstConstraintChecks4.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js
index 234b45ff4bef6..90773b9b1ebef 100644
--- a/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js
+++ b/tests/baselines/reference/overloadOnConstantsInvalidOverload1.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadResolution.js b/tests/baselines/reference/overloadResolution.js
index cf57a97e2a6a3..2027206faa18c 100644
--- a/tests/baselines/reference/overloadResolution.js
+++ b/tests/baselines/reference/overloadResolution.js
@@ -108,7 +108,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadResolutionClassConstructors.js b/tests/baselines/reference/overloadResolutionClassConstructors.js
index 6458cb28fd07a..8aba936ccb084 100644
--- a/tests/baselines/reference/overloadResolutionClassConstructors.js
+++ b/tests/baselines/reference/overloadResolutionClassConstructors.js
@@ -115,7 +115,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadResolutionConstructors.js b/tests/baselines/reference/overloadResolutionConstructors.js
index 178c9f981e4bc..763378b38ec10 100644
--- a/tests/baselines/reference/overloadResolutionConstructors.js
+++ b/tests/baselines/reference/overloadResolutionConstructors.js
@@ -116,7 +116,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadingOnConstants1.js b/tests/baselines/reference/overloadingOnConstants1.js
index 11865a43739bb..89c055415682d 100644
--- a/tests/baselines/reference/overloadingOnConstants1.js
+++ b/tests/baselines/reference/overloadingOnConstants1.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overloadingOnConstants2.js b/tests/baselines/reference/overloadingOnConstants2.js
index ad3905ada3dce..8a7f57d785f85 100644
--- a/tests/baselines/reference/overloadingOnConstants2.js
+++ b/tests/baselines/reference/overloadingOnConstants2.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override1.js b/tests/baselines/reference/override1.js
index 6ad18ccc5a119..5ae1b62931956 100644
--- a/tests/baselines/reference/override1.js
+++ b/tests/baselines/reference/override1.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override10.js b/tests/baselines/reference/override10.js
index 05439eaae5180..efd3ac714b7b5 100644
--- a/tests/baselines/reference/override10.js
+++ b/tests/baselines/reference/override10.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override11.js b/tests/baselines/reference/override11.js
index dfc32fb8c7bba..62004afe6ea34 100644
--- a/tests/baselines/reference/override11.js
+++ b/tests/baselines/reference/override11.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override15.js b/tests/baselines/reference/override15.js
index a299eef159d5b..ab9940ca6021c 100644
--- a/tests/baselines/reference/override15.js
+++ b/tests/baselines/reference/override15.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override2.js b/tests/baselines/reference/override2.js
index a7db8221934d8..5a866718b4c0b 100644
--- a/tests/baselines/reference/override2.js
+++ b/tests/baselines/reference/override2.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override3.js b/tests/baselines/reference/override3.js
index 6d4c019bc8746..46fb4d771f984 100644
--- a/tests/baselines/reference/override3.js
+++ b/tests/baselines/reference/override3.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override4.js b/tests/baselines/reference/override4.js
index a9f8ced4c35b9..a267c06d2f09a 100644
--- a/tests/baselines/reference/override4.js
+++ b/tests/baselines/reference/override4.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override5.js b/tests/baselines/reference/override5.js
index 8fe976184dbad..5255b03dd1a32 100644
--- a/tests/baselines/reference/override5.js
+++ b/tests/baselines/reference/override5.js
@@ -70,7 +70,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override6.js b/tests/baselines/reference/override6.js
index 29ebe1fc951fb..7cb2aa9ed3445 100644
--- a/tests/baselines/reference/override6.js
+++ b/tests/baselines/reference/override6.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override7.js b/tests/baselines/reference/override7.js
index ed2ed370d487d..cae16794397e5 100644
--- a/tests/baselines/reference/override7.js
+++ b/tests/baselines/reference/override7.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/override8.js b/tests/baselines/reference/override8.js
index 4ac80ff5bbb39..167e3092a493a 100644
--- a/tests/baselines/reference/override8.js
+++ b/tests/baselines/reference/override8.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overrideBaseIntersectionMethod.js b/tests/baselines/reference/overrideBaseIntersectionMethod.js
index 0cd7e83d97054..1a8fdd309d4b8 100644
--- a/tests/baselines/reference/overrideBaseIntersectionMethod.js
+++ b/tests/baselines/reference/overrideBaseIntersectionMethod.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overrideParameterProperty.js b/tests/baselines/reference/overrideParameterProperty.js
index a182440ea35ea..7dc580af782a1 100644
--- a/tests/baselines/reference/overrideParameterProperty.js
+++ b/tests/baselines/reference/overrideParameterProperty.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overrideWithoutNoImplicitOverride1.js b/tests/baselines/reference/overrideWithoutNoImplicitOverride1.js
index 088075b875375..66b62ec72b296 100644
--- a/tests/baselines/reference/overrideWithoutNoImplicitOverride1.js
+++ b/tests/baselines/reference/overrideWithoutNoImplicitOverride1.js
@@ -61,7 +61,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/overridingPrivateStaticMembers.js b/tests/baselines/reference/overridingPrivateStaticMembers.js
index 344b67b641979..8cc9c65ab9254 100644
--- a/tests/baselines/reference/overridingPrivateStaticMembers.js
+++ b/tests/baselines/reference/overridingPrivateStaticMembers.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js
index 5554c2ca10867..c5b630f02575c 100644
--- a/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js
+++ b/tests/baselines/reference/parameterPropertyInConstructorWithPrologues.js
@@ -97,7 +97,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parseErrorInHeritageClause1.js b/tests/baselines/reference/parseErrorInHeritageClause1.js
index ba9c8527c9552..e17f3aaaf2f65 100644
--- a/tests/baselines/reference/parseErrorInHeritageClause1.js
+++ b/tests/baselines/reference/parseErrorInHeritageClause1.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parser509630.js b/tests/baselines/reference/parser509630.js
index 4ce5d57c626c2..3c3ce333df720 100644
--- a/tests/baselines/reference/parser509630.js
+++ b/tests/baselines/reference/parser509630.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserAstSpans1.js b/tests/baselines/reference/parserAstSpans1.js
index 9d6bbdf7e4ee0..1a5fa34501ee8 100644
--- a/tests/baselines/reference/parserAstSpans1.js
+++ b/tests/baselines/reference/parserAstSpans1.js
@@ -233,7 +233,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserClassDeclaration1.js b/tests/baselines/reference/parserClassDeclaration1.js
index 9d14a05b90f16..de427d1715a01 100644
--- a/tests/baselines/reference/parserClassDeclaration1.js
+++ b/tests/baselines/reference/parserClassDeclaration1.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserClassDeclaration3.js b/tests/baselines/reference/parserClassDeclaration3.js
index 517e1ac30dd34..e67173823b67a 100644
--- a/tests/baselines/reference/parserClassDeclaration3.js
+++ b/tests/baselines/reference/parserClassDeclaration3.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserClassDeclaration4.js b/tests/baselines/reference/parserClassDeclaration4.js
index c12293d38cb70..660dcf3e4b1b8 100644
--- a/tests/baselines/reference/parserClassDeclaration4.js
+++ b/tests/baselines/reference/parserClassDeclaration4.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserClassDeclaration5.js b/tests/baselines/reference/parserClassDeclaration5.js
index 1038aaeccfe30..c070803aa5546 100644
--- a/tests/baselines/reference/parserClassDeclaration5.js
+++ b/tests/baselines/reference/parserClassDeclaration5.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserClassDeclaration6.js b/tests/baselines/reference/parserClassDeclaration6.js
index 9340b6e1e12eb..f08a58e343b79 100644
--- a/tests/baselines/reference/parserClassDeclaration6.js
+++ b/tests/baselines/reference/parserClassDeclaration6.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js
index 5366c3aaaedcf..b00712d9242c1 100644
--- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js
+++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause2.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js
index 7cf1343eb0405..f650a58ba2395 100644
--- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js
+++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause4.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js
index 1f55f106a587a..3633c7f5e0c34 100644
--- a/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js
+++ b/tests/baselines/reference/parserErrorRecovery_ExtendsOrImplementsClause5.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserGenericsInTypeContexts1.js b/tests/baselines/reference/parserGenericsInTypeContexts1.js
index ca2a24b9a05e7..8e6b97cc1ac3b 100644
--- a/tests/baselines/reference/parserGenericsInTypeContexts1.js
+++ b/tests/baselines/reference/parserGenericsInTypeContexts1.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserGenericsInTypeContexts2.js b/tests/baselines/reference/parserGenericsInTypeContexts2.js
index 5b121c2b84b6b..983b5f45c2478 100644
--- a/tests/baselines/reference/parserGenericsInTypeContexts2.js
+++ b/tests/baselines/reference/parserGenericsInTypeContexts2.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserRealSource10.js b/tests/baselines/reference/parserRealSource10.js
index 828e3bb1772f6..e1348d13427d2 100644
--- a/tests/baselines/reference/parserRealSource10.js
+++ b/tests/baselines/reference/parserRealSource10.js
@@ -471,7 +471,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserRealSource11.js b/tests/baselines/reference/parserRealSource11.js
index 28354273a3ed5..dfbf602cafedb 100644
--- a/tests/baselines/reference/parserRealSource11.js
+++ b/tests/baselines/reference/parserRealSource11.js
@@ -2380,7 +2380,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/parserharness.js b/tests/baselines/reference/parserharness.js
index 5aab93906746a..569d36f2aedae 100644
--- a/tests/baselines/reference/parserharness.js
+++ b/tests/baselines/reference/parserharness.js
@@ -2109,7 +2109,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js
index 6b427dcdfc520..e2ffb4e45d366 100644
--- a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js
+++ b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceError.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js
index be9acf143dce0..e9b96edaccc5e 100644
--- a/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js
+++ b/tests/baselines/reference/partiallyAnnotatedFunctionInferenceWithTypeParameter.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/performanceComparisonOfStructurallyIdenticalInterfacesWithGenericSignatures.js b/tests/baselines/reference/performanceComparisonOfStructurallyIdenticalInterfacesWithGenericSignatures.js
index 15f25fd611ef7..287dad2e88b7e 100644
--- a/tests/baselines/reference/performanceComparisonOfStructurallyIdenticalInterfacesWithGenericSignatures.js
+++ b/tests/baselines/reference/performanceComparisonOfStructurallyIdenticalInterfacesWithGenericSignatures.js
@@ -103,7 +103,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/primitiveMembers.js b/tests/baselines/reference/primitiveMembers.js
index 1ca0715438301..979d0ea7a9cd4 100644
--- a/tests/baselines/reference/primitiveMembers.js
+++ b/tests/baselines/reference/primitiveMembers.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privacyClass.js b/tests/baselines/reference/privacyClass.js
index e67706dce6d88..739fcc8407526 100644
--- a/tests/baselines/reference/privacyClass.js
+++ b/tests/baselines/reference/privacyClass.js
@@ -142,7 +142,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js
index 752adc42fdc04..da1c13073b210 100644
--- a/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js
+++ b/tests/baselines/reference/privacyClassExtendsClauseDeclFile.js
@@ -109,7 +109,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -307,7 +318,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privacyGloClass.js b/tests/baselines/reference/privacyGloClass.js
index 6ceaafcedc596..8ca1b7e43425e 100644
--- a/tests/baselines/reference/privacyGloClass.js
+++ b/tests/baselines/reference/privacyGloClass.js
@@ -74,7 +74,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privateAccessInSubclass1.js b/tests/baselines/reference/privateAccessInSubclass1.js
index c86bb6792b8ed..63f580721cfa0 100644
--- a/tests/baselines/reference/privateAccessInSubclass1.js
+++ b/tests/baselines/reference/privateAccessInSubclass1.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privateInstanceMemberAccessibility.js b/tests/baselines/reference/privateInstanceMemberAccessibility.js
index e1675acb21c0c..acd31a0a69ab9 100644
--- a/tests/baselines/reference/privateInstanceMemberAccessibility.js
+++ b/tests/baselines/reference/privateInstanceMemberAccessibility.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js
index c74bab2458e23..0c2613aeeb245 100644
--- a/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js
+++ b/tests/baselines/reference/privateProtectedMembersAreNotAccessibleDestructuring.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privateStaticMemberAccessibility.js b/tests/baselines/reference/privateStaticMemberAccessibility.js
index 8778fbb3a3c1c..67f3cb2cfcf5d 100644
--- a/tests/baselines/reference/privateStaticMemberAccessibility.js
+++ b/tests/baselines/reference/privateStaticMemberAccessibility.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js b/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js
index 49004095674d6..ee25d48da9fb7 100644
--- a/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js
+++ b/tests/baselines/reference/privateStaticNotAccessibleInClodule2.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js
index f5353bdb697c1..f735e3ee36657 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/amd/testGlo.js
@@ -9,7 +9,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js
index f5353bdb697c1..f735e3ee36657 100644
--- a/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js
+++ b/tests/baselines/reference/project/privacyCheckOnImportedModuleDeclarationsInsideModule/node/testGlo.js
@@ -9,7 +9,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/project/prologueEmit/amd/out.js b/tests/baselines/reference/project/prologueEmit/amd/out.js
index 0761d85d74026..bf6e2d82f4d92 100644
--- a/tests/baselines/reference/project/prologueEmit/amd/out.js
+++ b/tests/baselines/reference/project/prologueEmit/amd/out.js
@@ -9,7 +9,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/project/prologueEmit/node/out.js b/tests/baselines/reference/project/prologueEmit/node/out.js
index 0761d85d74026..bf6e2d82f4d92 100644
--- a/tests/baselines/reference/project/prologueEmit/node/out.js
+++ b/tests/baselines/reference/project/prologueEmit/node/out.js
@@ -9,7 +9,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js
index ce33f2150c13e..f39bfd73e7689 100644
--- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js
+++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/amd/m'ain.js
@@ -10,7 +10,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js
index ce33f2150c13e..f39bfd73e7689 100644
--- a/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js
+++ b/tests/baselines/reference/project/quotesInFileAndDirectoryNames/node/m'ain.js
@@ -10,7 +10,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertiesAndIndexers.js b/tests/baselines/reference/propertiesAndIndexers.js
index 58bf63971c227..5d727b27daf2e 100644
--- a/tests/baselines/reference/propertiesAndIndexers.js
+++ b/tests/baselines/reference/propertiesAndIndexers.js
@@ -65,7 +65,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertyAccess.js b/tests/baselines/reference/propertyAccess.js
index aa1c453124e9a..98b9f3554ffc6 100644
--- a/tests/baselines/reference/propertyAccess.js
+++ b/tests/baselines/reference/propertyAccess.js
@@ -164,7 +164,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js
index 0e0602f132c6d..bc1b7450a8047 100644
--- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js
+++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints2.js
@@ -96,7 +96,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js
index 6d950fec8e50d..19bc8d8fcf3fe 100644
--- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js
+++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints3.js
@@ -71,7 +71,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js
index 67e75e1575d72..d071fa3745b43 100644
--- a/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js
+++ b/tests/baselines/reference/propertyAccessOnTypeParameterWithConstraints5.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertyOverridesAccessors4.js b/tests/baselines/reference/propertyOverridesAccessors4.js
index ebc4a0ecd12d0..bb54fa47fb32f 100644
--- a/tests/baselines/reference/propertyOverridesAccessors4.js
+++ b/tests/baselines/reference/propertyOverridesAccessors4.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/propertyOverridingPrototype.js b/tests/baselines/reference/propertyOverridingPrototype.js
index 58ae7f471c854..2e88d12a5785f 100644
--- a/tests/baselines/reference/propertyOverridingPrototype.js
+++ b/tests/baselines/reference/propertyOverridingPrototype.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js
index 6df9c20a0af01..94971fdf11d41 100644
--- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js
+++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass.js
@@ -51,7 +51,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js
index 934f9d61e7f8c..39dfff4f5b5ee 100644
--- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js
+++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinNestedSubclass1.js
@@ -128,7 +128,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js
index 7dbe73be189fb..d4a94b8508ab3 100644
--- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js
+++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js
index fe0cb7db83e42..bab5c85761907 100644
--- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js
+++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass2.js
@@ -108,7 +108,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js
index b4e7d5b9c62e3..3ee41881062c0 100644
--- a/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js
+++ b/tests/baselines/reference/protectedClassPropertyAccessibleWithinSubclass3.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedInstanceMemberAccessibility.js b/tests/baselines/reference/protectedInstanceMemberAccessibility.js
index 88e94acf42785..f78b311a29c71 100644
--- a/tests/baselines/reference/protectedInstanceMemberAccessibility.js
+++ b/tests/baselines/reference/protectedInstanceMemberAccessibility.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedMembers.js b/tests/baselines/reference/protectedMembers.js
index b46e400e2747f..697ad69487ab2 100644
--- a/tests/baselines/reference/protectedMembers.js
+++ b/tests/baselines/reference/protectedMembers.js
@@ -129,7 +129,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedMembersThisParameter.js b/tests/baselines/reference/protectedMembersThisParameter.js
index 8de6a4e3bad53..01f8f677f7400 100644
--- a/tests/baselines/reference/protectedMembersThisParameter.js
+++ b/tests/baselines/reference/protectedMembersThisParameter.js
@@ -110,7 +110,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js
index b41696e4350b8..ff26e5616662c 100644
--- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js
+++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js
index 24c5212f9ded0..cc9eed0d16a8f 100644
--- a/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js
+++ b/tests/baselines/reference/protectedStaticClassPropertyAccessibleWithinSubclass2.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js b/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js
index ee45e5455e9e8..04d57e2fd3fab 100644
--- a/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js
+++ b/tests/baselines/reference/qualifiedName_entity-name-resolution-does-not-affect-class-heritage.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js b/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js
index 512cfe440f660..e1765efb04fbb 100644
--- a/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js
+++ b/tests/baselines/reference/reactDefaultPropsInferenceSuccess.js
@@ -84,7 +84,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reactHOCSpreadprops.js b/tests/baselines/reference/reactHOCSpreadprops.js
index 7e367e95205c2..baa2f91e83940 100644
--- a/tests/baselines/reference/reactHOCSpreadprops.js
+++ b/tests/baselines/reference/reactHOCSpreadprops.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js
index 1e10a91594c0d..f79bf96f263d8 100644
--- a/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js
+++ b/tests/baselines/reference/reactReadonlyHOCAssignabilityReal.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js b/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js
index b000368f44808..9c098bd1c24d1 100644
--- a/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js
+++ b/tests/baselines/reference/reactReduxLikeDeferredInferenceAllowsAssignment.js
@@ -162,7 +162,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js
index e87c8075b7fd6..2c7ff58b7d41c 100644
--- a/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js
+++ b/tests/baselines/reference/readonlyAssignmentInSubclassOfClassExpression.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/readonlyConstructorAssignment.js b/tests/baselines/reference/readonlyConstructorAssignment.js
index a7099fae21ada..151cb973c473a 100644
--- a/tests/baselines/reference/readonlyConstructorAssignment.js
+++ b/tests/baselines/reference/readonlyConstructorAssignment.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveBaseCheck3.js b/tests/baselines/reference/recursiveBaseCheck3.js
index 96dc49b4c867a..a5bb96cea4e3f 100644
--- a/tests/baselines/reference/recursiveBaseCheck3.js
+++ b/tests/baselines/reference/recursiveBaseCheck3.js
@@ -18,7 +18,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveBaseCheck4.js b/tests/baselines/reference/recursiveBaseCheck4.js
index 6d0cac39d6b50..e1750f2fd51f1 100644
--- a/tests/baselines/reference/recursiveBaseCheck4.js
+++ b/tests/baselines/reference/recursiveBaseCheck4.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveBaseCheck6.js b/tests/baselines/reference/recursiveBaseCheck6.js
index d97b5150347cd..cf653b5b1cc03 100644
--- a/tests/baselines/reference/recursiveBaseCheck6.js
+++ b/tests/baselines/reference/recursiveBaseCheck6.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveBaseConstructorCreation1.js b/tests/baselines/reference/recursiveBaseConstructorCreation1.js
index 40c509f6662e6..b7f66ba4d26d6 100644
--- a/tests/baselines/reference/recursiveBaseConstructorCreation1.js
+++ b/tests/baselines/reference/recursiveBaseConstructorCreation1.js
@@ -20,7 +20,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveClassBaseType.js b/tests/baselines/reference/recursiveClassBaseType.js
index fbfe9c9dee590..f72cb66ff5d6c 100644
--- a/tests/baselines/reference/recursiveClassBaseType.js
+++ b/tests/baselines/reference/recursiveClassBaseType.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js
index 61335cd196edc..da38595c3e316 100644
--- a/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js
+++ b/tests/baselines/reference/recursiveClassInstantiationsWithDefaultConstructors.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js b/tests/baselines/reference/recursiveClassReferenceTest.js
index b4e90b29337b0..cdb10f45b110b 100644
--- a/tests/baselines/reference/recursiveClassReferenceTest.js
+++ b/tests/baselines/reference/recursiveClassReferenceTest.js
@@ -118,7 +118,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursiveClassReferenceTest.js.map b/tests/baselines/reference/recursiveClassReferenceTest.js.map
index 880ecdb49e03f..bf9c9e2df5db7 100644
--- a/tests/baselines/reference/recursiveClassReferenceTest.js.map
+++ b/tests/baselines/reference/recursiveClassReferenceTest.js.map
@@ -1,3 +1,3 @@
//// [recursiveClassReferenceTest.js.map]
-{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;;;;;;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAAC,IAAA,OAAO,CAUpB;IAVa,WAAA,OAAO;QAAC,IAAA,KAAK,CAU1B;QAVqB,WAAA,OAAK;YAAC,IAAA,IAAI,CAU/B;YAV2B,WAAA,IAAI;gBAC/B;oBAAA;oBAQA,CAAC;oBANO,+BAAK,GAAZ,cAAiB,OAAO,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,OAAO,IAAI,CAAC;oBACb,CAAC;oBACF,sBAAC;gBAAD,CAAC,AARD,IAQC;gBARY,oBAAe,kBAQ3B,CAAA;YACF,CAAC,EAV2B,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAU/B;QAAD,CAAC,EAVqB,KAAK,GAAL,aAAK,KAAL,aAAK,QAU1B;IAAD,CAAC,EAVa,OAAO,GAAP,cAAO,KAAP,cAAO,QAUpB;AAAD,CAAC,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,WAAO,MAAM;IAAC,IAAA,KAAK,CAoBlB;IApBa,WAAA,KAAK;QAAC,IAAA,OAAO,CAoB1B;QApBmB,WAAA,OAAO;YAC1B;gBAKC,oBAAoB,SAAkC;oBAAlC,cAAS,GAAT,SAAS,CAAyB;oBAD9C,YAAO,GAAO,IAAI,CAAC;oBAEvB,aAAa;oBACb,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBANM,wBAAG,GAAV,UAAW,MAAyC,IAAI,IAAI,IAAI,EAAE,CAAC;oBAAA,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAA,CAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,OAAO,OAAO,CAAC;gBAChB,CAAC;gBAEM,4BAAO,GAAd;gBAEA,CAAC;gBAEF,iBAAC;YAAD,CAAC,AAlBD,IAkBC;YAlBY,kBAAU,aAkBtB,CAAA;QACF,CAAC,EApBmB,OAAO,GAAP,aAAO,KAAP,aAAO,QAoB1B;IAAD,CAAC,EApBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAoBlB;AAAD,CAAC,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD;IAAA;IAAuF,CAAC;IAA3C,sCAAe,GAAtB,cAAmC,OAAO,IAAI,CAAC,CAAA,CAAC;IAAC,mBAAC;AAAD,CAAC,AAAxF,IAAwF;AASxF,WAAO,MAAM;IAAC,IAAA,KAAK,CAwBlB;IAxBa,WAAA,KAAK;QAAC,IAAA,SAAS,CAwB5B;QAxBmB,WAAA,SAAS;YAAC,IAAA,SAAS,CAwBtC;YAxB6B,WAAA,SAAS;gBAEtC;oBACO,eAAoB,IAAW;wBAAX,SAAI,GAAJ,IAAI,CAAO;oBAAI,CAAC;oBACnC,qBAAK,GAAZ;wBACC,OAAO,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,OAAO,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,OAAO,IAAI,CAAC,CAAC,CAAC;oBACzC,YAAC;gBAAD,CAAC,AAXD,IAWC;gBAXY,eAAK,QAWjB,CAAA;gBAED;oBAA0B,wBAAY;oBAAtC;;oBAQA,CAAC;oBANA,aAAa;oBACN,8BAAe,GAAtB;wBACC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBACxB,CAAC;oBAGF,WAAC;gBAAD,CAAC,AARD,CAA0B,YAAY,GAQrC;gBARY,cAAI,OAQhB,CAAA;YACF,CAAC,EAxB6B,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAwBtC;QAAD,CAAC,EAxBmB,SAAS,GAAT,eAAS,KAAT,eAAS,QAwB5B;IAAD,CAAC,EAxBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAwBlB;AAAD,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ"}
-//// https://sokra.github.io/source-map-visualization#base64,Ly8gU2NlbmFyaW8gMTogVGVzdCByZXF1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoICJ0aGlzIiBwYXJhbWV0ZXINCi8vIFNjZW5hcmlvIDI6IFRlc3QgcmVjdXJzaXZlIGZ1bmN0aW9uIGNhbGwgd2l0aCBjYXN0IGFuZCAidGhpcyIgcGFyYW1ldGVyDQp2YXIgX19leHRlbmRzID0gKHRoaXMgJiYgdGhpcy5fX2V4dGVuZHMpIHx8IChmdW5jdGlvbiAoKSB7DQogICAgdmFyIGV4dGVuZFN0YXRpY3MgPSBmdW5jdGlvbiAoZCwgYikgew0KICAgICAgICBleHRlbmRTdGF0aWNzID0gT2JqZWN0LnNldFByb3RvdHlwZU9mIHx8DQogICAgICAgICAgICAoeyBfX3Byb3RvX186IFtdIH0gaW5zdGFuY2VvZiBBcnJheSAmJiBmdW5jdGlvbiAoZCwgYikgeyBkLl9fcHJvdG9fXyA9IGI7IH0pIHx8DQogICAgICAgICAgICBmdW5jdGlvbiAoZCwgYikgeyBmb3IgKHZhciBwIGluIGIpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoYiwgcCkpIGRbcF0gPSBiW3BdOyB9Ow0KICAgICAgICByZXR1cm4gZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICB9Ow0KICAgIHJldHVybiBmdW5jdGlvbiAoZCwgYikgew0KICAgICAgICBpZiAodHlwZW9mIGIgIT09ICJmdW5jdGlvbiIgJiYgYiAhPT0gbnVsbCkNCiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoIkNsYXNzIGV4dGVuZHMgdmFsdWUgIiArIFN0cmluZyhiKSArICIgaXMgbm90IGEgY29uc3RydWN0b3Igb3IgbnVsbCIpOw0KICAgICAgICBleHRlbmRTdGF0aWNzKGQsIGIpOw0KICAgICAgICBmdW5jdGlvbiBfXygpIHsgdGhpcy5jb25zdHJ1Y3RvciA9IGQ7IH0NCiAgICAgICAgZC5wcm90b3R5cGUgPSBiID09PSBudWxsID8gT2JqZWN0LmNyZWF0ZShiKSA6IChfXy5wcm90b3R5cGUgPSBiLnByb3RvdHlwZSwgbmV3IF9fKCkpOw0KICAgIH07DQp9KSgpOw0KdmFyIFNhbXBsZTsNCihmdW5jdGlvbiAoU2FtcGxlKSB7DQogICAgdmFyIEFjdGlvbnM7DQogICAgKGZ1bmN0aW9uIChBY3Rpb25zKSB7DQogICAgICAgIHZhciBUaGluZzsNCiAgICAgICAgKGZ1bmN0aW9uIChUaGluZ18xKSB7DQogICAgICAgICAgICB2YXIgRmluZDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoRmluZCkgew0KICAgICAgICAgICAgICAgIHZhciBTdGFydEZpbmRBY3Rpb24gPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIFN0YXJ0RmluZEFjdGlvbigpIHsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBTdGFydEZpbmRBY3Rpb24ucHJvdG90eXBlLmdldElkID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gInlvIjsgfTsNCiAgICAgICAgICAgICAgICAgICAgU3RhcnRGaW5kQWN0aW9uLnByb3RvdHlwZS5ydW4gPSBmdW5jdGlvbiAoVGhpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOw0KICAgICAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gU3RhcnRGaW5kQWN0aW9uOw0KICAgICAgICAgICAgICAgIH0oKSk7DQogICAgICAgICAgICAgICAgRmluZC5TdGFydEZpbmRBY3Rpb24gPSBTdGFydEZpbmRBY3Rpb247DQogICAgICAgICAgICB9KShGaW5kID0gVGhpbmdfMS5GaW5kIHx8IChUaGluZ18xLkZpbmQgPSB7fSkpOw0KICAgICAgICB9KShUaGluZyA9IEFjdGlvbnMuVGhpbmcgfHwgKEFjdGlvbnMuVGhpbmcgPSB7fSkpOw0KICAgIH0pKEFjdGlvbnMgPSBTYW1wbGUuQWN0aW9ucyB8fCAoU2FtcGxlLkFjdGlvbnMgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICB2YXIgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICB2YXIgV2lkZ2V0czsNCiAgICAgICAgKGZ1bmN0aW9uIChXaWRnZXRzKSB7DQogICAgICAgICAgICB2YXIgRmluZFdpZGdldCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgICAgICBmdW5jdGlvbiBGaW5kV2lkZ2V0KGNvZGVUaGluZykgew0KICAgICAgICAgICAgICAgICAgICB0aGlzLmNvZGVUaGluZyA9IGNvZGVUaGluZzsNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5kb21Ob2RlID0gbnVsbDsNCiAgICAgICAgICAgICAgICAgICAgLy8gc2NlbmFyaW8gMQ0KICAgICAgICAgICAgICAgICAgICBjb2RlVGhpbmcuYWRkV2lkZ2V0KCJhZGRXaWRnZXQiLCB0aGlzKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgRmluZFdpZGdldC5wcm90b3R5cGUuZ2FyID0gZnVuY3Rpb24gKHJ1bm5lcikgeyBpZiAodHJ1ZSkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gcnVubmVyKHRoaXMpOw0KICAgICAgICAgICAgICAgIH0gfTsNCiAgICAgICAgICAgICAgICBGaW5kV2lkZ2V0LnByb3RvdHlwZS5nZXREb21Ob2RlID0gZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gZG9tTm9kZTsNCiAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgICAgIEZpbmRXaWRnZXQucHJvdG90eXBlLmRlc3Ryb3kgPSBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgfTsNCiAgICAgICAgICAgICAgICByZXR1cm4gRmluZFdpZGdldDsNCiAgICAgICAgICAgIH0oKSk7DQogICAgICAgICAgICBXaWRnZXRzLkZpbmRXaWRnZXQgPSBGaW5kV2lkZ2V0Ow0KICAgICAgICB9KShXaWRnZXRzID0gVGhpbmcuV2lkZ2V0cyB8fCAoVGhpbmcuV2lkZ2V0cyA9IHt9KSk7DQogICAgfSkoVGhpbmcgPSBTYW1wbGUuVGhpbmcgfHwgKFNhbXBsZS5UaGluZyA9IHt9KSk7DQp9KShTYW1wbGUgfHwgKFNhbXBsZSA9IHt9KSk7DQp2YXIgQWJzdHJhY3RNb2RlID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEFic3RyYWN0TW9kZSgpIHsNCiAgICB9DQogICAgQWJzdHJhY3RNb2RlLnByb3RvdHlwZS5nZXRJbml0aWFsU3RhdGUgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBudWxsOyB9Ow0KICAgIHJldHVybiBBYnN0cmFjdE1vZGU7DQp9KCkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICB2YXIgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICB2YXIgTGFuZ3VhZ2VzOw0KICAgICAgICAoZnVuY3Rpb24gKExhbmd1YWdlcykgew0KICAgICAgICAgICAgdmFyIFBsYWluVGV4dDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoUGxhaW5UZXh0KSB7DQogICAgICAgICAgICAgICAgdmFyIFN0YXRlID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBTdGF0ZShtb2RlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1vZGUgPSBtb2RlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIFN0YXRlLnByb3RvdHlwZS5jbG9uZSA9IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzOw0KICAgICAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgICAgICAgICBTdGF0ZS5wcm90b3R5cGUuZXF1YWxzID0gZnVuY3Rpb24gKG90aGVyKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcyA9PT0gb3RoZXI7DQogICAgICAgICAgICAgICAgICAgIH07DQogICAgICAgICAgICAgICAgICAgIFN0YXRlLnByb3RvdHlwZS5nZXRNb2RlID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gbW9kZTsgfTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFN0YXRlOw0KICAgICAgICAgICAgICAgIH0oKSk7DQogICAgICAgICAgICAgICAgUGxhaW5UZXh0LlN0YXRlID0gU3RhdGU7DQogICAgICAgICAgICAgICAgdmFyIE1vZGUgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgICAgICAgICAgICAgICAgIF9fZXh0ZW5kcyhNb2RlLCBfc3VwZXIpOw0KICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBNb2RlKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIC8vIHNjZW5hcmlvIDINCiAgICAgICAgICAgICAgICAgICAgTW9kZS5wcm90b3R5cGUuZ2V0SW5pdGlhbFN0YXRlID0gZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBTdGF0ZShzZWxmKTsNCiAgICAgICAgICAgICAgICAgICAgfTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIE1vZGU7DQogICAgICAgICAgICAgICAgfShBYnN0cmFjdE1vZGUpKTsNCiAgICAgICAgICAgICAgICBQbGFpblRleHQuTW9kZSA9IE1vZGU7DQogICAgICAgICAgICB9KShQbGFpblRleHQgPSBMYW5ndWFnZXMuUGxhaW5UZXh0IHx8IChMYW5ndWFnZXMuUGxhaW5UZXh0ID0ge30pKTsNCiAgICAgICAgfSkoTGFuZ3VhZ2VzID0gVGhpbmcuTGFuZ3VhZ2VzIHx8IChUaGluZy5MYW5ndWFnZXMgPSB7fSkpOw0KICAgIH0pKFRoaW5nID0gU2FtcGxlLlRoaW5nIHx8IChTYW1wbGUuVGhpbmcgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9cmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlFQUFpRTtBQUNqRSwwRUFBMEU7Ozs7Ozs7Ozs7Ozs7Ozs7QUE4QjFFLElBQU8sTUFBTSxDQVVaO0FBVkQsV0FBTyxNQUFNO0lBQUMsSUFBQSxPQUFPLENBVXBCO0lBVmEsV0FBQSxPQUFPO1FBQUMsSUFBQSxLQUFLLENBVTFCO1FBVnFCLFdBQUEsT0FBSztZQUFDLElBQUEsSUFBSSxDQVUvQjtZQVYyQixXQUFBLElBQUk7Z0JBQy9CO29CQUFBO29CQVFBLENBQUM7b0JBTk8sK0JBQUssR0FBWixjQUFpQixPQUFPLElBQUksQ0FBQyxDQUFDLENBQUM7b0JBRXhCLDZCQUFHLEdBQVYsVUFBVyxLQUE2Qjt3QkFFdkMsT0FBTyxJQUFJLENBQUM7b0JBQ2IsQ0FBQztvQkFDRixzQkFBQztnQkFBRCxDQUFDLEFBUkQsSUFRQztnQkFSWSxvQkFBZSxrQkFRM0IsQ0FBQTtZQUNGLENBQUMsRUFWMkIsSUFBSSxHQUFKLFlBQUksS0FBSixZQUFJLFFBVS9CO1FBQUQsQ0FBQyxFQVZxQixLQUFLLEdBQUwsYUFBSyxLQUFMLGFBQUssUUFVMUI7SUFBRCxDQUFDLEVBVmEsT0FBTyxHQUFQLGNBQU8sS0FBUCxjQUFPLFFBVXBCO0FBQUQsQ0FBQyxFQVZNLE1BQU0sS0FBTixNQUFNLFFBVVo7QUFFRCxXQUFPLE1BQU07SUFBQyxJQUFBLEtBQUssQ0FvQmxCO0lBcEJhLFdBQUEsS0FBSztRQUFDLElBQUEsT0FBTyxDQW9CMUI7UUFwQm1CLFdBQUEsT0FBTztZQUMxQjtnQkFLQyxvQkFBb0IsU0FBa0M7b0JBQWxDLGNBQVMsR0FBVCxTQUFTLENBQXlCO29CQUQ5QyxZQUFPLEdBQU8sSUFBSSxDQUFDO29CQUV2QixhQUFhO29CQUNiLFNBQVMsQ0FBQyxTQUFTLENBQUMsV0FBVyxFQUFFLElBQUksQ0FBQyxDQUFDO2dCQUMzQyxDQUFDO2dCQU5NLHdCQUFHLEdBQVYsVUFBVyxNQUF5QyxJQUFJLElBQUksSUFBSSxFQUFFLENBQUM7b0JBQUEsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUM7Z0JBQUEsQ0FBQyxDQUFBLENBQUM7Z0JBUWxGLCtCQUFVLEdBQWpCO29CQUNDLE9BQU8sT0FBTyxDQUFDO2dCQUNoQixDQUFDO2dCQUVNLDRCQUFPLEdBQWQ7Z0JBRUEsQ0FBQztnQkFFRixpQkFBQztZQUFELENBQUMsQUFsQkQsSUFrQkM7WUFsQlksa0JBQVUsYUFrQnRCLENBQUE7UUFDRixDQUFDLEVBcEJtQixPQUFPLEdBQVAsYUFBTyxLQUFQLGFBQU8sUUFvQjFCO0lBQUQsQ0FBQyxFQXBCYSxLQUFLLEdBQUwsWUFBSyxLQUFMLFlBQUssUUFvQmxCO0FBQUQsQ0FBQyxFQXBCTSxNQUFNLEtBQU4sTUFBTSxRQW9CWjtBQUdEO0lBQUE7SUFBdUYsQ0FBQztJQUEzQyxzQ0FBZSxHQUF0QixjQUFtQyxPQUFPLElBQUksQ0FBQyxDQUFBLENBQUM7SUFBQyxtQkFBQztBQUFELENBQUMsQUFBeEYsSUFBd0Y7QUFTeEYsV0FBTyxNQUFNO0lBQUMsSUFBQSxLQUFLLENBd0JsQjtJQXhCYSxXQUFBLEtBQUs7UUFBQyxJQUFBLFNBQVMsQ0F3QjVCO1FBeEJtQixXQUFBLFNBQVM7WUFBQyxJQUFBLFNBQVMsQ0F3QnRDO1lBeEI2QixXQUFBLFNBQVM7Z0JBRXRDO29CQUNPLGVBQW9CLElBQVc7d0JBQVgsU0FBSSxHQUFKLElBQUksQ0FBTztvQkFBSSxDQUFDO29CQUNuQyxxQkFBSyxHQUFaO3dCQUNDLE9BQU8sSUFBSSxDQUFDO29CQUNiLENBQUM7b0JBRU0sc0JBQU0sR0FBYixVQUFjLEtBQVk7d0JBQ3pCLE9BQU8sSUFBSSxLQUFLLEtBQUssQ0FBQztvQkFDdkIsQ0FBQztvQkFFTSx1QkFBTyxHQUFkLGNBQTBCLE9BQU8sSUFBSSxDQUFDLENBQUMsQ0FBQztvQkFDekMsWUFBQztnQkFBRCxDQUFDLEFBWEQsSUFXQztnQkFYWSxlQUFLLFFBV2pCLENBQUE7Z0JBRUQ7b0JBQTBCLHdCQUFZO29CQUF0Qzs7b0JBUUEsQ0FBQztvQkFOQSxhQUFhO29CQUNOLDhCQUFlLEdBQXRCO3dCQUNDLE9BQU8sSUFBSSxLQUFLLENBQUMsSUFBSSxDQUFDLENBQUM7b0JBQ3hCLENBQUM7b0JBR0YsV0FBQztnQkFBRCxDQUFDLEFBUkQsQ0FBMEIsWUFBWSxHQVFyQztnQkFSWSxjQUFJLE9BUWhCLENBQUE7WUFDRixDQUFDLEVBeEI2QixTQUFTLEdBQVQsbUJBQVMsS0FBVCxtQkFBUyxRQXdCdEM7UUFBRCxDQUFDLEVBeEJtQixTQUFTLEdBQVQsZUFBUyxLQUFULGVBQVMsUUF3QjVCO0lBQUQsQ0FBQyxFQXhCYSxLQUFLLEdBQUwsWUFBSyxLQUFMLFlBQUssUUF3QmxCO0FBQUQsQ0FBQyxFQXhCTSxNQUFNLEtBQU4sTUFBTSxRQXdCWiJ9,Ly8gU2NlbmFyaW8gMTogVGVzdCByZXF1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoICJ0aGlzIiBwYXJhbWV0ZXIKLy8gU2NlbmFyaW8gMjogVGVzdCByZWN1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoIGNhc3QgYW5kICJ0aGlzIiBwYXJhbWV0ZXIKCgoKZGVjbGFyZSBtb2R1bGUgU2FtcGxlLlRoaW5nIHsKCglleHBvcnQgaW50ZXJmYWNlIElXaWRnZXQgewoJCWdldERvbU5vZGUoKTogYW55OwoJCWRlc3Ryb3koKTsKCQlnYXIocnVubmVyOih3aWRnZXQ6U2FtcGxlLlRoaW5nLklXaWRnZXQpPT5hbnkpOmFueTsKCX0KCglleHBvcnQgaW50ZXJmYWNlIElDb2RlVGhpbmcgewogIAogIAkJZ2V0RG9tTm9kZSgpOiBFbGVtZW50OwoJCQoJCWFkZFdpZGdldCh3aWRnZXRJZDpzdHJpbmcsIHdpZGdldDpJV2lkZ2V0KTsKCgkJCgkJZm9jdXMoKTsgCgkJCgkJLy9hZGRXaWRnZXQod2lkZ2V0OiBTYW1wbGUuVGhpbmcuV2lkZ2V0cy5JV2lkZ2V0KTsKCX0KCglleHBvcnQgaW50ZXJmYWNlIElBY3Rpb24gewoJCXJ1bihUaGluZzpJQ29kZVRoaW5nKTpib29sZWFuOwoJCWdldElkKCk6c3RyaW5nOwoJfQkKfQoKbW9kdWxlIFNhbXBsZS5BY3Rpb25zLlRoaW5nLkZpbmQgewoJZXhwb3J0IGNsYXNzIFN0YXJ0RmluZEFjdGlvbiBpbXBsZW1lbnRzIFNhbXBsZS5UaGluZy5JQWN0aW9uIHsKCQkKCQlwdWJsaWMgZ2V0SWQoKSB7IHJldHVybiAieW8iOyB9CgkJCgkJcHVibGljIHJ1bihUaGluZzpTYW1wbGUuVGhpbmcuSUNvZGVUaGluZyk6Ym9vbGVhbiB7CgoJCQlyZXR1cm4gdHJ1ZTsKCQl9Cgl9Cn0KCm1vZHVsZSBTYW1wbGUuVGhpbmcuV2lkZ2V0cyB7CglleHBvcnQgY2xhc3MgRmluZFdpZGdldCBpbXBsZW1lbnRzIFNhbXBsZS5UaGluZy5JV2lkZ2V0IHsKCgkJcHVibGljIGdhcihydW5uZXI6KHdpZGdldDpTYW1wbGUuVGhpbmcuSVdpZGdldCk9PmFueSkgeyBpZiAodHJ1ZSkge3JldHVybiBydW5uZXIodGhpcyk7fX0KCQkJCgkJcHJpdmF0ZSBkb21Ob2RlOmFueSA9IG51bGw7CgkJY29uc3RydWN0b3IocHJpdmF0ZSBjb2RlVGhpbmc6IFNhbXBsZS5UaGluZy5JQ29kZVRoaW5nKSB7CgkJICAgIC8vIHNjZW5hcmlvIDEKCQkgICAgY29kZVRoaW5nLmFkZFdpZGdldCgiYWRkV2lkZ2V0IiwgdGhpcyk7CgkJfQoJCQoJCXB1YmxpYyBnZXREb21Ob2RlKCkgewoJCQlyZXR1cm4gZG9tTm9kZTsKCQl9CgkJCgkJcHVibGljIGRlc3Ryb3koKSB7CgoJCX0KCgl9Cn0KCmludGVyZmFjZSBJTW9kZSB7IGdldEluaXRpYWxTdGF0ZSgpOiBJU3RhdGU7fSAKY2xhc3MgQWJzdHJhY3RNb2RlIGltcGxlbWVudHMgSU1vZGUgeyBwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7IHJldHVybiBudWxsO30gfQoKaW50ZXJmYWNlIElTdGF0ZSB7fQoKaW50ZXJmYWNlIFdpbmRvdyB7CiAgICBvcGVuZXI6IFdpbmRvdzsKfQpkZWNsYXJlIHZhciBzZWxmOiBXaW5kb3c7Cgptb2R1bGUgU2FtcGxlLlRoaW5nLkxhbmd1YWdlcy5QbGFpblRleHQgewoJCglleHBvcnQgY2xhc3MgU3RhdGUgaW1wbGVtZW50cyBJU3RhdGUgewkJCiAgICAgICAgY29uc3RydWN0b3IocHJpdmF0ZSBtb2RlOiBJTW9kZSkgeyB9CgkJcHVibGljIGNsb25lKCk6SVN0YXRlIHsKCQkJcmV0dXJuIHRoaXM7CgkJfQoKCQlwdWJsaWMgZXF1YWxzKG90aGVyOklTdGF0ZSk6Ym9vbGVhbiB7CgkJCXJldHVybiB0aGlzID09PSBvdGhlcjsKCQl9CgkJCgkJcHVibGljIGdldE1vZGUoKTogSU1vZGUgeyByZXR1cm4gbW9kZTsgfQoJfQoJCglleHBvcnQgY2xhc3MgTW9kZSBleHRlbmRzIEFic3RyYWN0TW9kZSB7CgoJCS8vIHNjZW5hcmlvIDIKCQlwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7CgkJCXJldHVybiBuZXcgU3RhdGUoc2VsZik7CgkJfQoKCgl9Cn0KCg==
+{"version":3,"file":"recursiveClassReferenceTest.js","sourceRoot":"","sources":["recursiveClassReferenceTest.ts"],"names":[],"mappings":"AAAA,iEAAiE;AACjE,0EAA0E;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8B1E,IAAO,MAAM,CAUZ;AAVD,WAAO,MAAM;IAAC,IAAA,OAAO,CAUpB;IAVa,WAAA,OAAO;QAAC,IAAA,KAAK,CAU1B;QAVqB,WAAA,OAAK;YAAC,IAAA,IAAI,CAU/B;YAV2B,WAAA,IAAI;gBAC/B;oBAAA;oBAQA,CAAC;oBANO,+BAAK,GAAZ,cAAiB,OAAO,IAAI,CAAC,CAAC,CAAC;oBAExB,6BAAG,GAAV,UAAW,KAA6B;wBAEvC,OAAO,IAAI,CAAC;oBACb,CAAC;oBACF,sBAAC;gBAAD,CAAC,AARD,IAQC;gBARY,oBAAe,kBAQ3B,CAAA;YACF,CAAC,EAV2B,IAAI,GAAJ,YAAI,KAAJ,YAAI,QAU/B;QAAD,CAAC,EAVqB,KAAK,GAAL,aAAK,KAAL,aAAK,QAU1B;IAAD,CAAC,EAVa,OAAO,GAAP,cAAO,KAAP,cAAO,QAUpB;AAAD,CAAC,EAVM,MAAM,KAAN,MAAM,QAUZ;AAED,WAAO,MAAM;IAAC,IAAA,KAAK,CAoBlB;IApBa,WAAA,KAAK;QAAC,IAAA,OAAO,CAoB1B;QApBmB,WAAA,OAAO;YAC1B;gBAKC,oBAAoB,SAAkC;oBAAlC,cAAS,GAAT,SAAS,CAAyB;oBAD9C,YAAO,GAAO,IAAI,CAAC;oBAEvB,aAAa;oBACb,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;gBAC3C,CAAC;gBANM,wBAAG,GAAV,UAAW,MAAyC,IAAI,IAAI,IAAI,EAAE,CAAC;oBAAA,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;gBAAA,CAAC,CAAA,CAAC;gBAQlF,+BAAU,GAAjB;oBACC,OAAO,OAAO,CAAC;gBAChB,CAAC;gBAEM,4BAAO,GAAd;gBAEA,CAAC;gBAEF,iBAAC;YAAD,CAAC,AAlBD,IAkBC;YAlBY,kBAAU,aAkBtB,CAAA;QACF,CAAC,EApBmB,OAAO,GAAP,aAAO,KAAP,aAAO,QAoB1B;IAAD,CAAC,EApBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAoBlB;AAAD,CAAC,EApBM,MAAM,KAAN,MAAM,QAoBZ;AAGD;IAAA;IAAuF,CAAC;IAA3C,sCAAe,GAAtB,cAAmC,OAAO,IAAI,CAAC,CAAA,CAAC;IAAC,mBAAC;AAAD,CAAC,AAAxF,IAAwF;AASxF,WAAO,MAAM;IAAC,IAAA,KAAK,CAwBlB;IAxBa,WAAA,KAAK;QAAC,IAAA,SAAS,CAwB5B;QAxBmB,WAAA,SAAS;YAAC,IAAA,SAAS,CAwBtC;YAxB6B,WAAA,SAAS;gBAEtC;oBACO,eAAoB,IAAW;wBAAX,SAAI,GAAJ,IAAI,CAAO;oBAAI,CAAC;oBACnC,qBAAK,GAAZ;wBACC,OAAO,IAAI,CAAC;oBACb,CAAC;oBAEM,sBAAM,GAAb,UAAc,KAAY;wBACzB,OAAO,IAAI,KAAK,KAAK,CAAC;oBACvB,CAAC;oBAEM,uBAAO,GAAd,cAA0B,OAAO,IAAI,CAAC,CAAC,CAAC;oBACzC,YAAC;gBAAD,CAAC,AAXD,IAWC;gBAXY,eAAK,QAWjB,CAAA;gBAED;oBAA0B,wBAAY;oBAAtC;;oBAQA,CAAC;oBANA,aAAa;oBACN,8BAAe,GAAtB;wBACC,OAAO,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;oBACxB,CAAC;oBAGF,WAAC;gBAAD,CAAC,AARD,CAA0B,YAAY,GAQrC;gBARY,cAAI,OAQhB,CAAA;YACF,CAAC,EAxB6B,SAAS,GAAT,mBAAS,KAAT,mBAAS,QAwBtC;QAAD,CAAC,EAxBmB,SAAS,GAAT,eAAS,KAAT,eAAS,QAwB5B;IAAD,CAAC,EAxBa,KAAK,GAAL,YAAK,KAAL,YAAK,QAwBlB;AAAD,CAAC,EAxBM,MAAM,KAAN,MAAM,QAwBZ"}
+//// https://sokra.github.io/source-map-visualization#base64,Ly8gU2NlbmFyaW8gMTogVGVzdCByZXF1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoICJ0aGlzIiBwYXJhbWV0ZXINCi8vIFNjZW5hcmlvIDI6IFRlc3QgcmVjdXJzaXZlIGZ1bmN0aW9uIGNhbGwgd2l0aCBjYXN0IGFuZCAidGhpcyIgcGFyYW1ldGVyDQp2YXIgX19leHRlbmRzID0gKHRoaXMgJiYgdGhpcy5fX2V4dGVuZHMpIHx8IChmdW5jdGlvbiAoKSB7DQogICAgdmFyIGV4dGVuZFN0YXRpY3MgPSBmdW5jdGlvbiAoZCwgYikgew0KICAgICAgICBleHRlbmRTdGF0aWNzID0gT2JqZWN0LnNldFByb3RvdHlwZU9mIHx8DQogICAgICAgICAgICAoeyBfX3Byb3RvX186IFtdIH0gaW5zdGFuY2VvZiBBcnJheSAmJiBmdW5jdGlvbiAoZCwgYikgeyBkLl9fcHJvdG9fXyA9IGI7IH0pIHx8DQogICAgICAgICAgICBmdW5jdGlvbiAoZCwgYikgeyBmb3IgKHZhciBwIGluIGIpIGlmIChPYmplY3QucHJvdG90eXBlLmhhc093blByb3BlcnR5LmNhbGwoYiwgcCkpIGRbcF0gPSBiW3BdOyB9Ow0KICAgICAgICByZXR1cm4gZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICB9Ow0KICAgIHJldHVybiBmdW5jdGlvbiAoZCwgYikgew0KICAgICAgICBpZiAodHlwZW9mIGIgIT09ICJmdW5jdGlvbiIgJiYgYiAhPT0gbnVsbCkNCiAgICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoIkNsYXNzIGV4dGVuZHMgdmFsdWUgIiArIFN0cmluZyhiKSArICIgaXMgbm90IGEgY29uc3RydWN0b3Igb3IgbnVsbCIpOw0KICAgICAgICBleHRlbmRTdGF0aWNzKGQsIGIpOw0KICAgICAgICBmdW5jdGlvbiBfXygpIHsNCiAgICAgICAgICAgIGlmIChPYmplY3QuZGVmaW5lUHJvcGVydHkpIHsNCiAgICAgICAgICAgICAgICBPYmplY3QuZGVmaW5lUHJvcGVydHkodGhpcywgImNvbnN0cnVjdG9yIiwgew0KICAgICAgICAgICAgICAgICAgICB2YWx1ZTogZCwNCiAgICAgICAgICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsDQogICAgICAgICAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLA0KICAgICAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUNCiAgICAgICAgICAgICAgICB9KTsNCiAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgdGhpcy5jb25zdHJ1Y3RvciA9IGQ7DQogICAgICAgICAgICB9DQogICAgICAgIH0NCiAgICAgICAgZC5wcm90b3R5cGUgPSBiID09PSBudWxsID8gT2JqZWN0LmNyZWF0ZShiKSA6IChfXy5wcm90b3R5cGUgPSBiLnByb3RvdHlwZSwgbmV3IF9fKCkpOw0KICAgIH07DQp9KSgpOw0KdmFyIFNhbXBsZTsNCihmdW5jdGlvbiAoU2FtcGxlKSB7DQogICAgdmFyIEFjdGlvbnM7DQogICAgKGZ1bmN0aW9uIChBY3Rpb25zKSB7DQogICAgICAgIHZhciBUaGluZzsNCiAgICAgICAgKGZ1bmN0aW9uIChUaGluZ18xKSB7DQogICAgICAgICAgICB2YXIgRmluZDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoRmluZCkgew0KICAgICAgICAgICAgICAgIHZhciBTdGFydEZpbmRBY3Rpb24gPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgICAgIGZ1bmN0aW9uIFN0YXJ0RmluZEFjdGlvbigpIHsNCiAgICAgICAgICAgICAgICAgICAgfQ0KICAgICAgICAgICAgICAgICAgICBTdGFydEZpbmRBY3Rpb24ucHJvdG90eXBlLmdldElkID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gInlvIjsgfTsNCiAgICAgICAgICAgICAgICAgICAgU3RhcnRGaW5kQWN0aW9uLnByb3RvdHlwZS5ydW4gPSBmdW5jdGlvbiAoVGhpbmcpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0cnVlOw0KICAgICAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gU3RhcnRGaW5kQWN0aW9uOw0KICAgICAgICAgICAgICAgIH0oKSk7DQogICAgICAgICAgICAgICAgRmluZC5TdGFydEZpbmRBY3Rpb24gPSBTdGFydEZpbmRBY3Rpb247DQogICAgICAgICAgICB9KShGaW5kID0gVGhpbmdfMS5GaW5kIHx8IChUaGluZ18xLkZpbmQgPSB7fSkpOw0KICAgICAgICB9KShUaGluZyA9IEFjdGlvbnMuVGhpbmcgfHwgKEFjdGlvbnMuVGhpbmcgPSB7fSkpOw0KICAgIH0pKEFjdGlvbnMgPSBTYW1wbGUuQWN0aW9ucyB8fCAoU2FtcGxlLkFjdGlvbnMgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICB2YXIgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICB2YXIgV2lkZ2V0czsNCiAgICAgICAgKGZ1bmN0aW9uIChXaWRnZXRzKSB7DQogICAgICAgICAgICB2YXIgRmluZFdpZGdldCA9IC8qKiBAY2xhc3MgKi8gKGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgICAgICBmdW5jdGlvbiBGaW5kV2lkZ2V0KGNvZGVUaGluZykgew0KICAgICAgICAgICAgICAgICAgICB0aGlzLmNvZGVUaGluZyA9IGNvZGVUaGluZzsNCiAgICAgICAgICAgICAgICAgICAgdGhpcy5kb21Ob2RlID0gbnVsbDsNCiAgICAgICAgICAgICAgICAgICAgLy8gc2NlbmFyaW8gMQ0KICAgICAgICAgICAgICAgICAgICBjb2RlVGhpbmcuYWRkV2lkZ2V0KCJhZGRXaWRnZXQiLCB0aGlzKTsNCiAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgRmluZFdpZGdldC5wcm90b3R5cGUuZ2FyID0gZnVuY3Rpb24gKHJ1bm5lcikgeyBpZiAodHJ1ZSkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gcnVubmVyKHRoaXMpOw0KICAgICAgICAgICAgICAgIH0gfTsNCiAgICAgICAgICAgICAgICBGaW5kV2lkZ2V0LnByb3RvdHlwZS5nZXREb21Ob2RlID0gZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICByZXR1cm4gZG9tTm9kZTsNCiAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgICAgIEZpbmRXaWRnZXQucHJvdG90eXBlLmRlc3Ryb3kgPSBmdW5jdGlvbiAoKSB7DQogICAgICAgICAgICAgICAgfTsNCiAgICAgICAgICAgICAgICByZXR1cm4gRmluZFdpZGdldDsNCiAgICAgICAgICAgIH0oKSk7DQogICAgICAgICAgICBXaWRnZXRzLkZpbmRXaWRnZXQgPSBGaW5kV2lkZ2V0Ow0KICAgICAgICB9KShXaWRnZXRzID0gVGhpbmcuV2lkZ2V0cyB8fCAoVGhpbmcuV2lkZ2V0cyA9IHt9KSk7DQogICAgfSkoVGhpbmcgPSBTYW1wbGUuVGhpbmcgfHwgKFNhbXBsZS5UaGluZyA9IHt9KSk7DQp9KShTYW1wbGUgfHwgKFNhbXBsZSA9IHt9KSk7DQp2YXIgQWJzdHJhY3RNb2RlID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgIGZ1bmN0aW9uIEFic3RyYWN0TW9kZSgpIHsNCiAgICB9DQogICAgQWJzdHJhY3RNb2RlLnByb3RvdHlwZS5nZXRJbml0aWFsU3RhdGUgPSBmdW5jdGlvbiAoKSB7IHJldHVybiBudWxsOyB9Ow0KICAgIHJldHVybiBBYnN0cmFjdE1vZGU7DQp9KCkpOw0KKGZ1bmN0aW9uIChTYW1wbGUpIHsNCiAgICB2YXIgVGhpbmc7DQogICAgKGZ1bmN0aW9uIChUaGluZykgew0KICAgICAgICB2YXIgTGFuZ3VhZ2VzOw0KICAgICAgICAoZnVuY3Rpb24gKExhbmd1YWdlcykgew0KICAgICAgICAgICAgdmFyIFBsYWluVGV4dDsNCiAgICAgICAgICAgIChmdW5jdGlvbiAoUGxhaW5UZXh0KSB7DQogICAgICAgICAgICAgICAgdmFyIFN0YXRlID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBTdGF0ZShtb2RlKSB7DQogICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1vZGUgPSBtb2RlOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIFN0YXRlLnByb3RvdHlwZS5jbG9uZSA9IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzOw0KICAgICAgICAgICAgICAgICAgICB9Ow0KICAgICAgICAgICAgICAgICAgICBTdGF0ZS5wcm90b3R5cGUuZXF1YWxzID0gZnVuY3Rpb24gKG90aGVyKSB7DQogICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcyA9PT0gb3RoZXI7DQogICAgICAgICAgICAgICAgICAgIH07DQogICAgICAgICAgICAgICAgICAgIFN0YXRlLnByb3RvdHlwZS5nZXRNb2RlID0gZnVuY3Rpb24gKCkgeyByZXR1cm4gbW9kZTsgfTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIFN0YXRlOw0KICAgICAgICAgICAgICAgIH0oKSk7DQogICAgICAgICAgICAgICAgUGxhaW5UZXh0LlN0YXRlID0gU3RhdGU7DQogICAgICAgICAgICAgICAgdmFyIE1vZGUgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoX3N1cGVyKSB7DQogICAgICAgICAgICAgICAgICAgIF9fZXh0ZW5kcyhNb2RlLCBfc3VwZXIpOw0KICAgICAgICAgICAgICAgICAgICBmdW5jdGlvbiBNb2RlKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICAgICAgICAgICAgICB9DQogICAgICAgICAgICAgICAgICAgIC8vIHNjZW5hcmlvIDINCiAgICAgICAgICAgICAgICAgICAgTW9kZS5wcm90b3R5cGUuZ2V0SW5pdGlhbFN0YXRlID0gZnVuY3Rpb24gKCkgew0KICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIG5ldyBTdGF0ZShzZWxmKTsNCiAgICAgICAgICAgICAgICAgICAgfTsNCiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIE1vZGU7DQogICAgICAgICAgICAgICAgfShBYnN0cmFjdE1vZGUpKTsNCiAgICAgICAgICAgICAgICBQbGFpblRleHQuTW9kZSA9IE1vZGU7DQogICAgICAgICAgICB9KShQbGFpblRleHQgPSBMYW5ndWFnZXMuUGxhaW5UZXh0IHx8IChMYW5ndWFnZXMuUGxhaW5UZXh0ID0ge30pKTsNCiAgICAgICAgfSkoTGFuZ3VhZ2VzID0gVGhpbmcuTGFuZ3VhZ2VzIHx8IChUaGluZy5MYW5ndWFnZXMgPSB7fSkpOw0KICAgIH0pKFRoaW5nID0gU2FtcGxlLlRoaW5nIHx8IChTYW1wbGUuVGhpbmcgPSB7fSkpOw0KfSkoU2FtcGxlIHx8IChTYW1wbGUgPSB7fSkpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9cmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsicmVjdXJzaXZlQ2xhc3NSZWZlcmVuY2VUZXN0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGlFQUFpRTtBQUNqRSwwRUFBMEU7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQThCMUUsSUFBTyxNQUFNLENBVVo7QUFWRCxXQUFPLE1BQU07SUFBQyxJQUFBLE9BQU8sQ0FVcEI7SUFWYSxXQUFBLE9BQU87UUFBQyxJQUFBLEtBQUssQ0FVMUI7UUFWcUIsV0FBQSxPQUFLO1lBQUMsSUFBQSxJQUFJLENBVS9CO1lBVjJCLFdBQUEsSUFBSTtnQkFDL0I7b0JBQUE7b0JBUUEsQ0FBQztvQkFOTywrQkFBSyxHQUFaLGNBQWlCLE9BQU8sSUFBSSxDQUFDLENBQUMsQ0FBQztvQkFFeEIsNkJBQUcsR0FBVixVQUFXLEtBQTZCO3dCQUV2QyxPQUFPLElBQUksQ0FBQztvQkFDYixDQUFDO29CQUNGLHNCQUFDO2dCQUFELENBQUMsQUFSRCxJQVFDO2dCQVJZLG9CQUFlLGtCQVEzQixDQUFBO1lBQ0YsQ0FBQyxFQVYyQixJQUFJLEdBQUosWUFBSSxLQUFKLFlBQUksUUFVL0I7UUFBRCxDQUFDLEVBVnFCLEtBQUssR0FBTCxhQUFLLEtBQUwsYUFBSyxRQVUxQjtJQUFELENBQUMsRUFWYSxPQUFPLEdBQVAsY0FBTyxLQUFQLGNBQU8sUUFVcEI7QUFBRCxDQUFDLEVBVk0sTUFBTSxLQUFOLE1BQU0sUUFVWjtBQUVELFdBQU8sTUFBTTtJQUFDLElBQUEsS0FBSyxDQW9CbEI7SUFwQmEsV0FBQSxLQUFLO1FBQUMsSUFBQSxPQUFPLENBb0IxQjtRQXBCbUIsV0FBQSxPQUFPO1lBQzFCO2dCQUtDLG9CQUFvQixTQUFrQztvQkFBbEMsY0FBUyxHQUFULFNBQVMsQ0FBeUI7b0JBRDlDLFlBQU8sR0FBTyxJQUFJLENBQUM7b0JBRXZCLGFBQWE7b0JBQ2IsU0FBUyxDQUFDLFNBQVMsQ0FBQyxXQUFXLEVBQUUsSUFBSSxDQUFDLENBQUM7Z0JBQzNDLENBQUM7Z0JBTk0sd0JBQUcsR0FBVixVQUFXLE1BQXlDLElBQUksSUFBSSxJQUFJLEVBQUUsQ0FBQztvQkFBQSxPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQztnQkFBQSxDQUFDLENBQUEsQ0FBQztnQkFRbEYsK0JBQVUsR0FBakI7b0JBQ0MsT0FBTyxPQUFPLENBQUM7Z0JBQ2hCLENBQUM7Z0JBRU0sNEJBQU8sR0FBZDtnQkFFQSxDQUFDO2dCQUVGLGlCQUFDO1lBQUQsQ0FBQyxBQWxCRCxJQWtCQztZQWxCWSxrQkFBVSxhQWtCdEIsQ0FBQTtRQUNGLENBQUMsRUFwQm1CLE9BQU8sR0FBUCxhQUFPLEtBQVAsYUFBTyxRQW9CMUI7SUFBRCxDQUFDLEVBcEJhLEtBQUssR0FBTCxZQUFLLEtBQUwsWUFBSyxRQW9CbEI7QUFBRCxDQUFDLEVBcEJNLE1BQU0sS0FBTixNQUFNLFFBb0JaO0FBR0Q7SUFBQTtJQUF1RixDQUFDO0lBQTNDLHNDQUFlLEdBQXRCLGNBQW1DLE9BQU8sSUFBSSxDQUFDLENBQUEsQ0FBQztJQUFDLG1CQUFDO0FBQUQsQ0FBQyxBQUF4RixJQUF3RjtBQVN4RixXQUFPLE1BQU07SUFBQyxJQUFBLEtBQUssQ0F3QmxCO0lBeEJhLFdBQUEsS0FBSztRQUFDLElBQUEsU0FBUyxDQXdCNUI7UUF4Qm1CLFdBQUEsU0FBUztZQUFDLElBQUEsU0FBUyxDQXdCdEM7WUF4QjZCLFdBQUEsU0FBUztnQkFFdEM7b0JBQ08sZUFBb0IsSUFBVzt3QkFBWCxTQUFJLEdBQUosSUFBSSxDQUFPO29CQUFJLENBQUM7b0JBQ25DLHFCQUFLLEdBQVo7d0JBQ0MsT0FBTyxJQUFJLENBQUM7b0JBQ2IsQ0FBQztvQkFFTSxzQkFBTSxHQUFiLFVBQWMsS0FBWTt3QkFDekIsT0FBTyxJQUFJLEtBQUssS0FBSyxDQUFDO29CQUN2QixDQUFDO29CQUVNLHVCQUFPLEdBQWQsY0FBMEIsT0FBTyxJQUFJLENBQUMsQ0FBQyxDQUFDO29CQUN6QyxZQUFDO2dCQUFELENBQUMsQUFYRCxJQVdDO2dCQVhZLGVBQUssUUFXakIsQ0FBQTtnQkFFRDtvQkFBMEIsd0JBQVk7b0JBQXRDOztvQkFRQSxDQUFDO29CQU5BLGFBQWE7b0JBQ04sOEJBQWUsR0FBdEI7d0JBQ0MsT0FBTyxJQUFJLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQztvQkFDeEIsQ0FBQztvQkFHRixXQUFDO2dCQUFELENBQUMsQUFSRCxDQUEwQixZQUFZLEdBUXJDO2dCQVJZLGNBQUksT0FRaEIsQ0FBQTtZQUNGLENBQUMsRUF4QjZCLFNBQVMsR0FBVCxtQkFBUyxLQUFULG1CQUFTLFFBd0J0QztRQUFELENBQUMsRUF4Qm1CLFNBQVMsR0FBVCxlQUFTLEtBQVQsZUFBUyxRQXdCNUI7SUFBRCxDQUFDLEVBeEJhLEtBQUssR0FBTCxZQUFLLEtBQUwsWUFBSyxRQXdCbEI7QUFBRCxDQUFDLEVBeEJNLE1BQU0sS0FBTixNQUFNLFFBd0JaIn0=,Ly8gU2NlbmFyaW8gMTogVGVzdCByZXF1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoICJ0aGlzIiBwYXJhbWV0ZXIKLy8gU2NlbmFyaW8gMjogVGVzdCByZWN1cnNpdmUgZnVuY3Rpb24gY2FsbCB3aXRoIGNhc3QgYW5kICJ0aGlzIiBwYXJhbWV0ZXIKCgoKZGVjbGFyZSBtb2R1bGUgU2FtcGxlLlRoaW5nIHsKCglleHBvcnQgaW50ZXJmYWNlIElXaWRnZXQgewoJCWdldERvbU5vZGUoKTogYW55OwoJCWRlc3Ryb3koKTsKCQlnYXIocnVubmVyOih3aWRnZXQ6U2FtcGxlLlRoaW5nLklXaWRnZXQpPT5hbnkpOmFueTsKCX0KCglleHBvcnQgaW50ZXJmYWNlIElDb2RlVGhpbmcgewogIAogIAkJZ2V0RG9tTm9kZSgpOiBFbGVtZW50OwoJCQoJCWFkZFdpZGdldCh3aWRnZXRJZDpzdHJpbmcsIHdpZGdldDpJV2lkZ2V0KTsKCgkJCgkJZm9jdXMoKTsgCgkJCgkJLy9hZGRXaWRnZXQod2lkZ2V0OiBTYW1wbGUuVGhpbmcuV2lkZ2V0cy5JV2lkZ2V0KTsKCX0KCglleHBvcnQgaW50ZXJmYWNlIElBY3Rpb24gewoJCXJ1bihUaGluZzpJQ29kZVRoaW5nKTpib29sZWFuOwoJCWdldElkKCk6c3RyaW5nOwoJfQkKfQoKbW9kdWxlIFNhbXBsZS5BY3Rpb25zLlRoaW5nLkZpbmQgewoJZXhwb3J0IGNsYXNzIFN0YXJ0RmluZEFjdGlvbiBpbXBsZW1lbnRzIFNhbXBsZS5UaGluZy5JQWN0aW9uIHsKCQkKCQlwdWJsaWMgZ2V0SWQoKSB7IHJldHVybiAieW8iOyB9CgkJCgkJcHVibGljIHJ1bihUaGluZzpTYW1wbGUuVGhpbmcuSUNvZGVUaGluZyk6Ym9vbGVhbiB7CgoJCQlyZXR1cm4gdHJ1ZTsKCQl9Cgl9Cn0KCm1vZHVsZSBTYW1wbGUuVGhpbmcuV2lkZ2V0cyB7CglleHBvcnQgY2xhc3MgRmluZFdpZGdldCBpbXBsZW1lbnRzIFNhbXBsZS5UaGluZy5JV2lkZ2V0IHsKCgkJcHVibGljIGdhcihydW5uZXI6KHdpZGdldDpTYW1wbGUuVGhpbmcuSVdpZGdldCk9PmFueSkgeyBpZiAodHJ1ZSkge3JldHVybiBydW5uZXIodGhpcyk7fX0KCQkJCgkJcHJpdmF0ZSBkb21Ob2RlOmFueSA9IG51bGw7CgkJY29uc3RydWN0b3IocHJpdmF0ZSBjb2RlVGhpbmc6IFNhbXBsZS5UaGluZy5JQ29kZVRoaW5nKSB7CgkJICAgIC8vIHNjZW5hcmlvIDEKCQkgICAgY29kZVRoaW5nLmFkZFdpZGdldCgiYWRkV2lkZ2V0IiwgdGhpcyk7CgkJfQoJCQoJCXB1YmxpYyBnZXREb21Ob2RlKCkgewoJCQlyZXR1cm4gZG9tTm9kZTsKCQl9CgkJCgkJcHVibGljIGRlc3Ryb3koKSB7CgoJCX0KCgl9Cn0KCmludGVyZmFjZSBJTW9kZSB7IGdldEluaXRpYWxTdGF0ZSgpOiBJU3RhdGU7fSAKY2xhc3MgQWJzdHJhY3RNb2RlIGltcGxlbWVudHMgSU1vZGUgeyBwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7IHJldHVybiBudWxsO30gfQoKaW50ZXJmYWNlIElTdGF0ZSB7fQoKaW50ZXJmYWNlIFdpbmRvdyB7CiAgICBvcGVuZXI6IFdpbmRvdzsKfQpkZWNsYXJlIHZhciBzZWxmOiBXaW5kb3c7Cgptb2R1bGUgU2FtcGxlLlRoaW5nLkxhbmd1YWdlcy5QbGFpblRleHQgewoJCglleHBvcnQgY2xhc3MgU3RhdGUgaW1wbGVtZW50cyBJU3RhdGUgewkJCiAgICAgICAgY29uc3RydWN0b3IocHJpdmF0ZSBtb2RlOiBJTW9kZSkgeyB9CgkJcHVibGljIGNsb25lKCk6SVN0YXRlIHsKCQkJcmV0dXJuIHRoaXM7CgkJfQoKCQlwdWJsaWMgZXF1YWxzKG90aGVyOklTdGF0ZSk6Ym9vbGVhbiB7CgkJCXJldHVybiB0aGlzID09PSBvdGhlcjsKCQl9CgkJCgkJcHVibGljIGdldE1vZGUoKTogSU1vZGUgeyByZXR1cm4gbW9kZTsgfQoJfQoJCglleHBvcnQgY2xhc3MgTW9kZSBleHRlbmRzIEFic3RyYWN0TW9kZSB7CgoJCS8vIHNjZW5hcmlvIDIKCQlwdWJsaWMgZ2V0SW5pdGlhbFN0YXRlKCk6IElTdGF0ZSB7CgkJCXJldHVybiBuZXcgU3RhdGUoc2VsZik7CgkJfQoKCgl9Cn0KCg==
diff --git a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt
index 02e3ed57537f5..c281451c4f55c 100644
--- a/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt
+++ b/tests/baselines/reference/recursiveClassReferenceTest.sourcemap.txt
@@ -37,7 +37,18 @@ sourceFile:recursiveClassReferenceTest.ts
>>> if (typeof b !== "function" && b !== null)
>>> throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
>>> extendStatics(d, b);
->>> function __() { this.constructor = d; }
+>>> function __() {
+>>> if (Object.defineProperty) {
+>>> Object.defineProperty(this, "constructor", {
+>>> value: d,
+>>> writable: true,
+>>> enumerable: false,
+>>> configurable: true
+>>> });
+>>> } else {
+>>> this.constructor = d;
+>>> }
+>>> }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>> };
>>>})();
@@ -91,10 +102,10 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1 >Emitted(18, 1) Source(32, 1) + SourceIndex(0)
-2 >Emitted(18, 5) Source(32, 8) + SourceIndex(0)
-3 >Emitted(18, 11) Source(32, 14) + SourceIndex(0)
-4 >Emitted(18, 12) Source(42, 2) + SourceIndex(0)
+1 >Emitted(29, 1) Source(32, 1) + SourceIndex(0)
+2 >Emitted(29, 5) Source(32, 8) + SourceIndex(0)
+3 >Emitted(29, 11) Source(32, 14) + SourceIndex(0)
+4 >Emitted(29, 12) Source(42, 2) + SourceIndex(0)
---
>>>(function (Sample) {
1->
@@ -103,9 +114,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >module
3 > Sample
-1->Emitted(19, 1) Source(32, 1) + SourceIndex(0)
-2 >Emitted(19, 12) Source(32, 8) + SourceIndex(0)
-3 >Emitted(19, 18) Source(32, 14) + SourceIndex(0)
+1->Emitted(30, 1) Source(32, 1) + SourceIndex(0)
+2 >Emitted(30, 12) Source(32, 8) + SourceIndex(0)
+3 >Emitted(30, 18) Source(32, 14) + SourceIndex(0)
---
>>> var Actions;
1 >^^^^
@@ -127,10 +138,10 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1 >Emitted(20, 5) Source(32, 15) + SourceIndex(0)
-2 >Emitted(20, 9) Source(32, 15) + SourceIndex(0)
-3 >Emitted(20, 16) Source(32, 22) + SourceIndex(0)
-4 >Emitted(20, 17) Source(42, 2) + SourceIndex(0)
+1 >Emitted(31, 5) Source(32, 15) + SourceIndex(0)
+2 >Emitted(31, 9) Source(32, 15) + SourceIndex(0)
+3 >Emitted(31, 16) Source(32, 22) + SourceIndex(0)
+4 >Emitted(31, 17) Source(42, 2) + SourceIndex(0)
---
>>> (function (Actions) {
1->^^^^
@@ -139,9 +150,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Actions
-1->Emitted(21, 5) Source(32, 15) + SourceIndex(0)
-2 >Emitted(21, 16) Source(32, 15) + SourceIndex(0)
-3 >Emitted(21, 23) Source(32, 22) + SourceIndex(0)
+1->Emitted(32, 5) Source(32, 15) + SourceIndex(0)
+2 >Emitted(32, 16) Source(32, 15) + SourceIndex(0)
+3 >Emitted(32, 23) Source(32, 22) + SourceIndex(0)
---
>>> var Thing;
1 >^^^^^^^^
@@ -163,10 +174,10 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1 >Emitted(22, 9) Source(32, 23) + SourceIndex(0)
-2 >Emitted(22, 13) Source(32, 23) + SourceIndex(0)
-3 >Emitted(22, 18) Source(32, 28) + SourceIndex(0)
-4 >Emitted(22, 19) Source(42, 2) + SourceIndex(0)
+1 >Emitted(33, 9) Source(32, 23) + SourceIndex(0)
+2 >Emitted(33, 13) Source(32, 23) + SourceIndex(0)
+3 >Emitted(33, 18) Source(32, 28) + SourceIndex(0)
+4 >Emitted(33, 19) Source(42, 2) + SourceIndex(0)
---
>>> (function (Thing_1) {
1->^^^^^^^^
@@ -175,9 +186,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Thing
-1->Emitted(23, 9) Source(32, 23) + SourceIndex(0)
-2 >Emitted(23, 20) Source(32, 23) + SourceIndex(0)
-3 >Emitted(23, 27) Source(32, 28) + SourceIndex(0)
+1->Emitted(34, 9) Source(32, 23) + SourceIndex(0)
+2 >Emitted(34, 20) Source(32, 23) + SourceIndex(0)
+3 >Emitted(34, 27) Source(32, 28) + SourceIndex(0)
---
>>> var Find;
1 >^^^^^^^^^^^^
@@ -199,10 +210,10 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1 >Emitted(24, 13) Source(32, 29) + SourceIndex(0)
-2 >Emitted(24, 17) Source(32, 29) + SourceIndex(0)
-3 >Emitted(24, 21) Source(32, 33) + SourceIndex(0)
-4 >Emitted(24, 22) Source(42, 2) + SourceIndex(0)
+1 >Emitted(35, 13) Source(32, 29) + SourceIndex(0)
+2 >Emitted(35, 17) Source(32, 29) + SourceIndex(0)
+3 >Emitted(35, 21) Source(32, 33) + SourceIndex(0)
+4 >Emitted(35, 22) Source(42, 2) + SourceIndex(0)
---
>>> (function (Find) {
1->^^^^^^^^^^^^
@@ -212,22 +223,22 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Find
-1->Emitted(25, 13) Source(32, 29) + SourceIndex(0)
-2 >Emitted(25, 24) Source(32, 29) + SourceIndex(0)
-3 >Emitted(25, 28) Source(32, 33) + SourceIndex(0)
+1->Emitted(36, 13) Source(32, 29) + SourceIndex(0)
+2 >Emitted(36, 24) Source(32, 29) + SourceIndex(0)
+3 >Emitted(36, 28) Source(32, 33) + SourceIndex(0)
---
>>> var StartFindAction = /** @class */ (function () {
1->^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1-> {
>
-1->Emitted(26, 17) Source(33, 2) + SourceIndex(0)
+1->Emitted(37, 17) Source(33, 2) + SourceIndex(0)
---
>>> function StartFindAction() {
1->^^^^^^^^^^^^^^^^^^^^
2 > ^^->
1->
-1->Emitted(27, 21) Source(33, 2) + SourceIndex(0)
+1->Emitted(38, 21) Source(33, 2) + SourceIndex(0)
---
>>> }
1->^^^^^^^^^^^^^^^^^^^^
@@ -243,8 +254,8 @@ sourceFile:recursiveClassReferenceTest.ts
> }
>
2 > }
-1->Emitted(28, 21) Source(41, 2) + SourceIndex(0)
-2 >Emitted(28, 22) Source(41, 3) + SourceIndex(0)
+1->Emitted(39, 21) Source(41, 2) + SourceIndex(0)
+2 >Emitted(39, 22) Source(41, 3) + SourceIndex(0)
---
>>> StartFindAction.prototype.getId = function () { return "yo"; };
1->^^^^^^^^^^^^^^^^^^^^
@@ -265,15 +276,15 @@ sourceFile:recursiveClassReferenceTest.ts
7 > ;
8 >
9 > }
-1->Emitted(29, 21) Source(35, 10) + SourceIndex(0)
-2 >Emitted(29, 52) Source(35, 15) + SourceIndex(0)
-3 >Emitted(29, 55) Source(35, 3) + SourceIndex(0)
-4 >Emitted(29, 69) Source(35, 20) + SourceIndex(0)
-5 >Emitted(29, 76) Source(35, 27) + SourceIndex(0)
-6 >Emitted(29, 80) Source(35, 31) + SourceIndex(0)
-7 >Emitted(29, 81) Source(35, 32) + SourceIndex(0)
-8 >Emitted(29, 82) Source(35, 33) + SourceIndex(0)
-9 >Emitted(29, 83) Source(35, 34) + SourceIndex(0)
+1->Emitted(40, 21) Source(35, 10) + SourceIndex(0)
+2 >Emitted(40, 52) Source(35, 15) + SourceIndex(0)
+3 >Emitted(40, 55) Source(35, 3) + SourceIndex(0)
+4 >Emitted(40, 69) Source(35, 20) + SourceIndex(0)
+5 >Emitted(40, 76) Source(35, 27) + SourceIndex(0)
+6 >Emitted(40, 80) Source(35, 31) + SourceIndex(0)
+7 >Emitted(40, 81) Source(35, 32) + SourceIndex(0)
+8 >Emitted(40, 82) Source(35, 33) + SourceIndex(0)
+9 >Emitted(40, 83) Source(35, 34) + SourceIndex(0)
---
>>> StartFindAction.prototype.run = function (Thing) {
1 >^^^^^^^^^^^^^^^^^^^^
@@ -288,11 +299,11 @@ sourceFile:recursiveClassReferenceTest.ts
3 >
4 > public run(
5 > Thing:Sample.Thing.ICodeThing
-1 >Emitted(30, 21) Source(37, 10) + SourceIndex(0)
-2 >Emitted(30, 50) Source(37, 13) + SourceIndex(0)
-3 >Emitted(30, 53) Source(37, 3) + SourceIndex(0)
-4 >Emitted(30, 63) Source(37, 14) + SourceIndex(0)
-5 >Emitted(30, 68) Source(37, 43) + SourceIndex(0)
+1 >Emitted(41, 21) Source(37, 10) + SourceIndex(0)
+2 >Emitted(41, 50) Source(37, 13) + SourceIndex(0)
+3 >Emitted(41, 53) Source(37, 3) + SourceIndex(0)
+4 >Emitted(41, 63) Source(37, 14) + SourceIndex(0)
+5 >Emitted(41, 68) Source(37, 43) + SourceIndex(0)
---
>>> return true;
1 >^^^^^^^^^^^^^^^^^^^^^^^^
@@ -305,10 +316,10 @@ sourceFile:recursiveClassReferenceTest.ts
2 > return
3 > true
4 > ;
-1 >Emitted(31, 25) Source(39, 4) + SourceIndex(0)
-2 >Emitted(31, 32) Source(39, 11) + SourceIndex(0)
-3 >Emitted(31, 36) Source(39, 15) + SourceIndex(0)
-4 >Emitted(31, 37) Source(39, 16) + SourceIndex(0)
+1 >Emitted(42, 25) Source(39, 4) + SourceIndex(0)
+2 >Emitted(42, 32) Source(39, 11) + SourceIndex(0)
+3 >Emitted(42, 36) Source(39, 15) + SourceIndex(0)
+4 >Emitted(42, 37) Source(39, 16) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^^^^^^^^
@@ -317,8 +328,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(32, 21) Source(40, 3) + SourceIndex(0)
-2 >Emitted(32, 22) Source(40, 4) + SourceIndex(0)
+1 >Emitted(43, 21) Source(40, 3) + SourceIndex(0)
+2 >Emitted(43, 22) Source(40, 4) + SourceIndex(0)
---
>>> return StartFindAction;
1->^^^^^^^^^^^^^^^^^^^^
@@ -326,8 +337,8 @@ sourceFile:recursiveClassReferenceTest.ts
1->
>
2 > }
-1->Emitted(33, 21) Source(41, 2) + SourceIndex(0)
-2 >Emitted(33, 43) Source(41, 3) + SourceIndex(0)
+1->Emitted(44, 21) Source(41, 2) + SourceIndex(0)
+2 >Emitted(44, 43) Source(41, 3) + SourceIndex(0)
---
>>> }());
1 >^^^^^^^^^^^^^^^^
@@ -347,10 +358,10 @@ sourceFile:recursiveClassReferenceTest.ts
> return true;
> }
> }
-1 >Emitted(34, 17) Source(41, 2) + SourceIndex(0)
-2 >Emitted(34, 18) Source(41, 3) + SourceIndex(0)
-3 >Emitted(34, 18) Source(33, 2) + SourceIndex(0)
-4 >Emitted(34, 22) Source(41, 3) + SourceIndex(0)
+1 >Emitted(45, 17) Source(41, 2) + SourceIndex(0)
+2 >Emitted(45, 18) Source(41, 3) + SourceIndex(0)
+3 >Emitted(45, 18) Source(33, 2) + SourceIndex(0)
+4 >Emitted(45, 22) Source(41, 3) + SourceIndex(0)
---
>>> Find.StartFindAction = StartFindAction;
1->^^^^^^^^^^^^^^^^
@@ -370,10 +381,10 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
4 >
-1->Emitted(35, 17) Source(33, 15) + SourceIndex(0)
-2 >Emitted(35, 37) Source(33, 30) + SourceIndex(0)
-3 >Emitted(35, 55) Source(41, 3) + SourceIndex(0)
-4 >Emitted(35, 56) Source(41, 3) + SourceIndex(0)
+1->Emitted(46, 17) Source(33, 15) + SourceIndex(0)
+2 >Emitted(46, 37) Source(33, 30) + SourceIndex(0)
+3 >Emitted(46, 55) Source(41, 3) + SourceIndex(0)
+4 >Emitted(46, 56) Source(41, 3) + SourceIndex(0)
---
>>> })(Find = Thing_1.Find || (Thing_1.Find = {}));
1->^^^^^^^^^^^^
@@ -405,15 +416,15 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1->Emitted(36, 13) Source(42, 1) + SourceIndex(0)
-2 >Emitted(36, 14) Source(42, 2) + SourceIndex(0)
-3 >Emitted(36, 16) Source(32, 29) + SourceIndex(0)
-4 >Emitted(36, 20) Source(32, 33) + SourceIndex(0)
-5 >Emitted(36, 23) Source(32, 29) + SourceIndex(0)
-6 >Emitted(36, 35) Source(32, 33) + SourceIndex(0)
-7 >Emitted(36, 40) Source(32, 29) + SourceIndex(0)
-8 >Emitted(36, 52) Source(32, 33) + SourceIndex(0)
-9 >Emitted(36, 60) Source(42, 2) + SourceIndex(0)
+1->Emitted(47, 13) Source(42, 1) + SourceIndex(0)
+2 >Emitted(47, 14) Source(42, 2) + SourceIndex(0)
+3 >Emitted(47, 16) Source(32, 29) + SourceIndex(0)
+4 >Emitted(47, 20) Source(32, 33) + SourceIndex(0)
+5 >Emitted(47, 23) Source(32, 29) + SourceIndex(0)
+6 >Emitted(47, 35) Source(32, 33) + SourceIndex(0)
+7 >Emitted(47, 40) Source(32, 29) + SourceIndex(0)
+8 >Emitted(47, 52) Source(32, 33) + SourceIndex(0)
+9 >Emitted(47, 60) Source(42, 2) + SourceIndex(0)
---
>>> })(Thing = Actions.Thing || (Actions.Thing = {}));
1 >^^^^^^^^
@@ -445,15 +456,15 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1 >Emitted(37, 9) Source(42, 1) + SourceIndex(0)
-2 >Emitted(37, 10) Source(42, 2) + SourceIndex(0)
-3 >Emitted(37, 12) Source(32, 23) + SourceIndex(0)
-4 >Emitted(37, 17) Source(32, 28) + SourceIndex(0)
-5 >Emitted(37, 20) Source(32, 23) + SourceIndex(0)
-6 >Emitted(37, 33) Source(32, 28) + SourceIndex(0)
-7 >Emitted(37, 38) Source(32, 23) + SourceIndex(0)
-8 >Emitted(37, 51) Source(32, 28) + SourceIndex(0)
-9 >Emitted(37, 59) Source(42, 2) + SourceIndex(0)
+1 >Emitted(48, 9) Source(42, 1) + SourceIndex(0)
+2 >Emitted(48, 10) Source(42, 2) + SourceIndex(0)
+3 >Emitted(48, 12) Source(32, 23) + SourceIndex(0)
+4 >Emitted(48, 17) Source(32, 28) + SourceIndex(0)
+5 >Emitted(48, 20) Source(32, 23) + SourceIndex(0)
+6 >Emitted(48, 33) Source(32, 28) + SourceIndex(0)
+7 >Emitted(48, 38) Source(32, 23) + SourceIndex(0)
+8 >Emitted(48, 51) Source(32, 28) + SourceIndex(0)
+9 >Emitted(48, 59) Source(42, 2) + SourceIndex(0)
---
>>> })(Actions = Sample.Actions || (Sample.Actions = {}));
1->^^^^
@@ -484,15 +495,15 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1->Emitted(38, 5) Source(42, 1) + SourceIndex(0)
-2 >Emitted(38, 6) Source(42, 2) + SourceIndex(0)
-3 >Emitted(38, 8) Source(32, 15) + SourceIndex(0)
-4 >Emitted(38, 15) Source(32, 22) + SourceIndex(0)
-5 >Emitted(38, 18) Source(32, 15) + SourceIndex(0)
-6 >Emitted(38, 32) Source(32, 22) + SourceIndex(0)
-7 >Emitted(38, 37) Source(32, 15) + SourceIndex(0)
-8 >Emitted(38, 51) Source(32, 22) + SourceIndex(0)
-9 >Emitted(38, 59) Source(42, 2) + SourceIndex(0)
+1->Emitted(49, 5) Source(42, 1) + SourceIndex(0)
+2 >Emitted(49, 6) Source(42, 2) + SourceIndex(0)
+3 >Emitted(49, 8) Source(32, 15) + SourceIndex(0)
+4 >Emitted(49, 15) Source(32, 22) + SourceIndex(0)
+5 >Emitted(49, 18) Source(32, 15) + SourceIndex(0)
+6 >Emitted(49, 32) Source(32, 22) + SourceIndex(0)
+7 >Emitted(49, 37) Source(32, 15) + SourceIndex(0)
+8 >Emitted(49, 51) Source(32, 22) + SourceIndex(0)
+9 >Emitted(49, 59) Source(42, 2) + SourceIndex(0)
---
>>>})(Sample || (Sample = {}));
1 >
@@ -519,13 +530,13 @@ sourceFile:recursiveClassReferenceTest.ts
> }
> }
> }
-1 >Emitted(39, 1) Source(42, 1) + SourceIndex(0)
-2 >Emitted(39, 2) Source(42, 2) + SourceIndex(0)
-3 >Emitted(39, 4) Source(32, 8) + SourceIndex(0)
-4 >Emitted(39, 10) Source(32, 14) + SourceIndex(0)
-5 >Emitted(39, 15) Source(32, 8) + SourceIndex(0)
-6 >Emitted(39, 21) Source(32, 14) + SourceIndex(0)
-7 >Emitted(39, 29) Source(42, 2) + SourceIndex(0)
+1 >Emitted(50, 1) Source(42, 1) + SourceIndex(0)
+2 >Emitted(50, 2) Source(42, 2) + SourceIndex(0)
+3 >Emitted(50, 4) Source(32, 8) + SourceIndex(0)
+4 >Emitted(50, 10) Source(32, 14) + SourceIndex(0)
+5 >Emitted(50, 15) Source(32, 8) + SourceIndex(0)
+6 >Emitted(50, 21) Source(32, 14) + SourceIndex(0)
+7 >Emitted(50, 29) Source(42, 2) + SourceIndex(0)
---
>>>(function (Sample) {
1 >
@@ -536,9 +547,9 @@ sourceFile:recursiveClassReferenceTest.ts
>
2 >module
3 > Sample
-1 >Emitted(40, 1) Source(44, 1) + SourceIndex(0)
-2 >Emitted(40, 12) Source(44, 8) + SourceIndex(0)
-3 >Emitted(40, 18) Source(44, 14) + SourceIndex(0)
+1 >Emitted(51, 1) Source(44, 1) + SourceIndex(0)
+2 >Emitted(51, 12) Source(44, 8) + SourceIndex(0)
+3 >Emitted(51, 18) Source(44, 14) + SourceIndex(0)
---
>>> var Thing;
1 >^^^^
@@ -570,10 +581,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(41, 5) Source(44, 15) + SourceIndex(0)
-2 >Emitted(41, 9) Source(44, 15) + SourceIndex(0)
-3 >Emitted(41, 14) Source(44, 20) + SourceIndex(0)
-4 >Emitted(41, 15) Source(64, 2) + SourceIndex(0)
+1 >Emitted(52, 5) Source(44, 15) + SourceIndex(0)
+2 >Emitted(52, 9) Source(44, 15) + SourceIndex(0)
+3 >Emitted(52, 14) Source(44, 20) + SourceIndex(0)
+4 >Emitted(52, 15) Source(64, 2) + SourceIndex(0)
---
>>> (function (Thing) {
1->^^^^
@@ -583,9 +594,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Thing
-1->Emitted(42, 5) Source(44, 15) + SourceIndex(0)
-2 >Emitted(42, 16) Source(44, 15) + SourceIndex(0)
-3 >Emitted(42, 21) Source(44, 20) + SourceIndex(0)
+1->Emitted(53, 5) Source(44, 15) + SourceIndex(0)
+2 >Emitted(53, 16) Source(44, 15) + SourceIndex(0)
+3 >Emitted(53, 21) Source(44, 20) + SourceIndex(0)
---
>>> var Widgets;
1->^^^^^^^^
@@ -617,10 +628,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1->Emitted(43, 9) Source(44, 21) + SourceIndex(0)
-2 >Emitted(43, 13) Source(44, 21) + SourceIndex(0)
-3 >Emitted(43, 20) Source(44, 28) + SourceIndex(0)
-4 >Emitted(43, 21) Source(64, 2) + SourceIndex(0)
+1->Emitted(54, 9) Source(44, 21) + SourceIndex(0)
+2 >Emitted(54, 13) Source(44, 21) + SourceIndex(0)
+3 >Emitted(54, 20) Source(44, 28) + SourceIndex(0)
+4 >Emitted(54, 21) Source(64, 2) + SourceIndex(0)
---
>>> (function (Widgets) {
1->^^^^^^^^
@@ -630,16 +641,16 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Widgets
-1->Emitted(44, 9) Source(44, 21) + SourceIndex(0)
-2 >Emitted(44, 20) Source(44, 21) + SourceIndex(0)
-3 >Emitted(44, 27) Source(44, 28) + SourceIndex(0)
+1->Emitted(55, 9) Source(44, 21) + SourceIndex(0)
+2 >Emitted(55, 20) Source(44, 21) + SourceIndex(0)
+3 >Emitted(55, 27) Source(44, 28) + SourceIndex(0)
---
>>> var FindWidget = /** @class */ (function () {
1->^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1-> {
>
-1->Emitted(45, 13) Source(45, 2) + SourceIndex(0)
+1->Emitted(56, 13) Source(45, 2) + SourceIndex(0)
---
>>> function FindWidget(codeThing) {
1->^^^^^^^^^^^^^^^^
@@ -654,9 +665,9 @@ sourceFile:recursiveClassReferenceTest.ts
>
2 > constructor(private
3 > codeThing: Sample.Thing.ICodeThing
-1->Emitted(46, 17) Source(50, 3) + SourceIndex(0)
-2 >Emitted(46, 37) Source(50, 23) + SourceIndex(0)
-3 >Emitted(46, 46) Source(50, 57) + SourceIndex(0)
+1->Emitted(57, 17) Source(50, 3) + SourceIndex(0)
+2 >Emitted(57, 37) Source(50, 23) + SourceIndex(0)
+3 >Emitted(57, 46) Source(50, 57) + SourceIndex(0)
---
>>> this.codeThing = codeThing;
1->^^^^^^^^^^^^^^^^^^^^
@@ -669,11 +680,11 @@ sourceFile:recursiveClassReferenceTest.ts
3 >
4 > codeThing
5 > : Sample.Thing.ICodeThing
-1->Emitted(47, 21) Source(50, 23) + SourceIndex(0)
-2 >Emitted(47, 35) Source(50, 32) + SourceIndex(0)
-3 >Emitted(47, 38) Source(50, 23) + SourceIndex(0)
-4 >Emitted(47, 47) Source(50, 32) + SourceIndex(0)
-5 >Emitted(47, 48) Source(50, 57) + SourceIndex(0)
+1->Emitted(58, 21) Source(50, 23) + SourceIndex(0)
+2 >Emitted(58, 35) Source(50, 32) + SourceIndex(0)
+3 >Emitted(58, 38) Source(50, 23) + SourceIndex(0)
+4 >Emitted(58, 47) Source(50, 32) + SourceIndex(0)
+5 >Emitted(58, 48) Source(50, 57) + SourceIndex(0)
---
>>> this.domNode = null;
1 >^^^^^^^^^^^^^^^^^^^^
@@ -686,11 +697,11 @@ sourceFile:recursiveClassReferenceTest.ts
3 > :any =
4 > null
5 > ;
-1 >Emitted(48, 21) Source(49, 11) + SourceIndex(0)
-2 >Emitted(48, 33) Source(49, 18) + SourceIndex(0)
-3 >Emitted(48, 36) Source(49, 25) + SourceIndex(0)
-4 >Emitted(48, 40) Source(49, 29) + SourceIndex(0)
-5 >Emitted(48, 41) Source(49, 30) + SourceIndex(0)
+1 >Emitted(59, 21) Source(49, 11) + SourceIndex(0)
+2 >Emitted(59, 33) Source(49, 18) + SourceIndex(0)
+3 >Emitted(59, 36) Source(49, 25) + SourceIndex(0)
+4 >Emitted(59, 40) Source(49, 29) + SourceIndex(0)
+5 >Emitted(59, 41) Source(49, 30) + SourceIndex(0)
---
>>> // scenario 1
1 >^^^^^^^^^^^^^^^^^^^^
@@ -700,8 +711,8 @@ sourceFile:recursiveClassReferenceTest.ts
> constructor(private codeThing: Sample.Thing.ICodeThing) {
>
2 > // scenario 1
-1 >Emitted(49, 21) Source(51, 7) + SourceIndex(0)
-2 >Emitted(49, 34) Source(51, 20) + SourceIndex(0)
+1 >Emitted(60, 21) Source(51, 7) + SourceIndex(0)
+2 >Emitted(60, 34) Source(51, 20) + SourceIndex(0)
---
>>> codeThing.addWidget("addWidget", this);
1->^^^^^^^^^^^^^^^^^^^^
@@ -725,16 +736,16 @@ sourceFile:recursiveClassReferenceTest.ts
8 > this
9 > )
10> ;
-1->Emitted(50, 21) Source(52, 7) + SourceIndex(0)
-2 >Emitted(50, 30) Source(52, 16) + SourceIndex(0)
-3 >Emitted(50, 31) Source(52, 17) + SourceIndex(0)
-4 >Emitted(50, 40) Source(52, 26) + SourceIndex(0)
-5 >Emitted(50, 41) Source(52, 27) + SourceIndex(0)
-6 >Emitted(50, 52) Source(52, 38) + SourceIndex(0)
-7 >Emitted(50, 54) Source(52, 40) + SourceIndex(0)
-8 >Emitted(50, 58) Source(52, 44) + SourceIndex(0)
-9 >Emitted(50, 59) Source(52, 45) + SourceIndex(0)
-10>Emitted(50, 60) Source(52, 46) + SourceIndex(0)
+1->Emitted(61, 21) Source(52, 7) + SourceIndex(0)
+2 >Emitted(61, 30) Source(52, 16) + SourceIndex(0)
+3 >Emitted(61, 31) Source(52, 17) + SourceIndex(0)
+4 >Emitted(61, 40) Source(52, 26) + SourceIndex(0)
+5 >Emitted(61, 41) Source(52, 27) + SourceIndex(0)
+6 >Emitted(61, 52) Source(52, 38) + SourceIndex(0)
+7 >Emitted(61, 54) Source(52, 40) + SourceIndex(0)
+8 >Emitted(61, 58) Source(52, 44) + SourceIndex(0)
+9 >Emitted(61, 59) Source(52, 45) + SourceIndex(0)
+10>Emitted(61, 60) Source(52, 46) + SourceIndex(0)
---
>>> }
1 >^^^^^^^^^^^^^^^^
@@ -743,8 +754,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(51, 17) Source(53, 3) + SourceIndex(0)
-2 >Emitted(51, 18) Source(53, 4) + SourceIndex(0)
+1 >Emitted(62, 17) Source(53, 3) + SourceIndex(0)
+2 >Emitted(62, 18) Source(53, 4) + SourceIndex(0)
---
>>> FindWidget.prototype.gar = function (runner) { if (true) {
1->^^^^^^^^^^^^^^^^
@@ -767,16 +778,16 @@ sourceFile:recursiveClassReferenceTest.ts
8 > true
9 > )
10> {
-1->Emitted(52, 17) Source(47, 10) + SourceIndex(0)
-2 >Emitted(52, 41) Source(47, 13) + SourceIndex(0)
-3 >Emitted(52, 44) Source(47, 3) + SourceIndex(0)
-4 >Emitted(52, 54) Source(47, 14) + SourceIndex(0)
-5 >Emitted(52, 60) Source(47, 55) + SourceIndex(0)
-6 >Emitted(52, 64) Source(47, 59) + SourceIndex(0)
-7 >Emitted(52, 68) Source(47, 63) + SourceIndex(0)
-8 >Emitted(52, 72) Source(47, 67) + SourceIndex(0)
-9 >Emitted(52, 74) Source(47, 69) + SourceIndex(0)
-10>Emitted(52, 75) Source(47, 70) + SourceIndex(0)
+1->Emitted(63, 17) Source(47, 10) + SourceIndex(0)
+2 >Emitted(63, 41) Source(47, 13) + SourceIndex(0)
+3 >Emitted(63, 44) Source(47, 3) + SourceIndex(0)
+4 >Emitted(63, 54) Source(47, 14) + SourceIndex(0)
+5 >Emitted(63, 60) Source(47, 55) + SourceIndex(0)
+6 >Emitted(63, 64) Source(47, 59) + SourceIndex(0)
+7 >Emitted(63, 68) Source(47, 63) + SourceIndex(0)
+8 >Emitted(63, 72) Source(47, 67) + SourceIndex(0)
+9 >Emitted(63, 74) Source(47, 69) + SourceIndex(0)
+10>Emitted(63, 75) Source(47, 70) + SourceIndex(0)
---
>>> return runner(this);
1 >^^^^^^^^^^^^^^^^^^^^
@@ -793,13 +804,13 @@ sourceFile:recursiveClassReferenceTest.ts
5 > this
6 > )
7 > ;
-1 >Emitted(53, 21) Source(47, 70) + SourceIndex(0)
-2 >Emitted(53, 28) Source(47, 77) + SourceIndex(0)
-3 >Emitted(53, 34) Source(47, 83) + SourceIndex(0)
-4 >Emitted(53, 35) Source(47, 84) + SourceIndex(0)
-5 >Emitted(53, 39) Source(47, 88) + SourceIndex(0)
-6 >Emitted(53, 40) Source(47, 89) + SourceIndex(0)
-7 >Emitted(53, 41) Source(47, 90) + SourceIndex(0)
+1 >Emitted(64, 21) Source(47, 70) + SourceIndex(0)
+2 >Emitted(64, 28) Source(47, 77) + SourceIndex(0)
+3 >Emitted(64, 34) Source(47, 83) + SourceIndex(0)
+4 >Emitted(64, 35) Source(47, 84) + SourceIndex(0)
+5 >Emitted(64, 39) Source(47, 88) + SourceIndex(0)
+6 >Emitted(64, 40) Source(47, 89) + SourceIndex(0)
+7 >Emitted(64, 41) Source(47, 90) + SourceIndex(0)
---
>>> } };
1 >^^^^^^^^^^^^^^^^
@@ -811,10 +822,10 @@ sourceFile:recursiveClassReferenceTest.ts
2 > }
3 >
4 > }
-1 >Emitted(54, 17) Source(47, 90) + SourceIndex(0)
-2 >Emitted(54, 18) Source(47, 91) + SourceIndex(0)
-3 >Emitted(54, 19) Source(47, 91) + SourceIndex(0)
-4 >Emitted(54, 20) Source(47, 92) + SourceIndex(0)
+1 >Emitted(65, 17) Source(47, 90) + SourceIndex(0)
+2 >Emitted(65, 18) Source(47, 91) + SourceIndex(0)
+3 >Emitted(65, 19) Source(47, 91) + SourceIndex(0)
+4 >Emitted(65, 20) Source(47, 92) + SourceIndex(0)
---
>>> FindWidget.prototype.getDomNode = function () {
1->^^^^^^^^^^^^^^^^
@@ -831,9 +842,9 @@ sourceFile:recursiveClassReferenceTest.ts
> public
2 > getDomNode
3 >
-1->Emitted(55, 17) Source(55, 10) + SourceIndex(0)
-2 >Emitted(55, 48) Source(55, 20) + SourceIndex(0)
-3 >Emitted(55, 51) Source(55, 3) + SourceIndex(0)
+1->Emitted(66, 17) Source(55, 10) + SourceIndex(0)
+2 >Emitted(66, 48) Source(55, 20) + SourceIndex(0)
+3 >Emitted(66, 51) Source(55, 3) + SourceIndex(0)
---
>>> return domNode;
1 >^^^^^^^^^^^^^^^^^^^^
@@ -845,10 +856,10 @@ sourceFile:recursiveClassReferenceTest.ts
2 > return
3 > domNode
4 > ;
-1 >Emitted(56, 21) Source(56, 4) + SourceIndex(0)
-2 >Emitted(56, 28) Source(56, 11) + SourceIndex(0)
-3 >Emitted(56, 35) Source(56, 18) + SourceIndex(0)
-4 >Emitted(56, 36) Source(56, 19) + SourceIndex(0)
+1 >Emitted(67, 21) Source(56, 4) + SourceIndex(0)
+2 >Emitted(67, 28) Source(56, 11) + SourceIndex(0)
+3 >Emitted(67, 35) Source(56, 18) + SourceIndex(0)
+4 >Emitted(67, 36) Source(56, 19) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^^^^
@@ -857,8 +868,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(57, 17) Source(57, 3) + SourceIndex(0)
-2 >Emitted(57, 18) Source(57, 4) + SourceIndex(0)
+1 >Emitted(68, 17) Source(57, 3) + SourceIndex(0)
+2 >Emitted(68, 18) Source(57, 4) + SourceIndex(0)
---
>>> FindWidget.prototype.destroy = function () {
1->^^^^^^^^^^^^^^^^
@@ -869,9 +880,9 @@ sourceFile:recursiveClassReferenceTest.ts
> public
2 > destroy
3 >
-1->Emitted(58, 17) Source(59, 10) + SourceIndex(0)
-2 >Emitted(58, 45) Source(59, 17) + SourceIndex(0)
-3 >Emitted(58, 48) Source(59, 3) + SourceIndex(0)
+1->Emitted(69, 17) Source(59, 10) + SourceIndex(0)
+2 >Emitted(69, 45) Source(59, 17) + SourceIndex(0)
+3 >Emitted(69, 48) Source(59, 3) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^^^^
@@ -881,8 +892,8 @@ sourceFile:recursiveClassReferenceTest.ts
>
>
2 > }
-1 >Emitted(59, 17) Source(61, 3) + SourceIndex(0)
-2 >Emitted(59, 18) Source(61, 4) + SourceIndex(0)
+1 >Emitted(70, 17) Source(61, 3) + SourceIndex(0)
+2 >Emitted(70, 18) Source(61, 4) + SourceIndex(0)
---
>>> return FindWidget;
1->^^^^^^^^^^^^^^^^
@@ -891,8 +902,8 @@ sourceFile:recursiveClassReferenceTest.ts
>
>
2 > }
-1->Emitted(60, 17) Source(63, 2) + SourceIndex(0)
-2 >Emitted(60, 34) Source(63, 3) + SourceIndex(0)
+1->Emitted(71, 17) Source(63, 2) + SourceIndex(0)
+2 >Emitted(71, 34) Source(63, 3) + SourceIndex(0)
---
>>> }());
1 >^^^^^^^^^^^^
@@ -922,10 +933,10 @@ sourceFile:recursiveClassReferenceTest.ts
> }
>
> }
-1 >Emitted(61, 13) Source(63, 2) + SourceIndex(0)
-2 >Emitted(61, 14) Source(63, 3) + SourceIndex(0)
-3 >Emitted(61, 14) Source(45, 2) + SourceIndex(0)
-4 >Emitted(61, 18) Source(63, 3) + SourceIndex(0)
+1 >Emitted(72, 13) Source(63, 2) + SourceIndex(0)
+2 >Emitted(72, 14) Source(63, 3) + SourceIndex(0)
+3 >Emitted(72, 14) Source(45, 2) + SourceIndex(0)
+4 >Emitted(72, 18) Source(63, 3) + SourceIndex(0)
---
>>> Widgets.FindWidget = FindWidget;
1->^^^^^^^^^^^^
@@ -955,10 +966,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
4 >
-1->Emitted(62, 13) Source(45, 15) + SourceIndex(0)
-2 >Emitted(62, 31) Source(45, 25) + SourceIndex(0)
-3 >Emitted(62, 44) Source(63, 3) + SourceIndex(0)
-4 >Emitted(62, 45) Source(63, 3) + SourceIndex(0)
+1->Emitted(73, 13) Source(45, 15) + SourceIndex(0)
+2 >Emitted(73, 31) Source(45, 25) + SourceIndex(0)
+3 >Emitted(73, 44) Source(63, 3) + SourceIndex(0)
+4 >Emitted(73, 45) Source(63, 3) + SourceIndex(0)
---
>>> })(Widgets = Thing.Widgets || (Thing.Widgets = {}));
1->^^^^^^^^
@@ -1000,15 +1011,15 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1->Emitted(63, 9) Source(64, 1) + SourceIndex(0)
-2 >Emitted(63, 10) Source(64, 2) + SourceIndex(0)
-3 >Emitted(63, 12) Source(44, 21) + SourceIndex(0)
-4 >Emitted(63, 19) Source(44, 28) + SourceIndex(0)
-5 >Emitted(63, 22) Source(44, 21) + SourceIndex(0)
-6 >Emitted(63, 35) Source(44, 28) + SourceIndex(0)
-7 >Emitted(63, 40) Source(44, 21) + SourceIndex(0)
-8 >Emitted(63, 53) Source(44, 28) + SourceIndex(0)
-9 >Emitted(63, 61) Source(64, 2) + SourceIndex(0)
+1->Emitted(74, 9) Source(64, 1) + SourceIndex(0)
+2 >Emitted(74, 10) Source(64, 2) + SourceIndex(0)
+3 >Emitted(74, 12) Source(44, 21) + SourceIndex(0)
+4 >Emitted(74, 19) Source(44, 28) + SourceIndex(0)
+5 >Emitted(74, 22) Source(44, 21) + SourceIndex(0)
+6 >Emitted(74, 35) Source(44, 28) + SourceIndex(0)
+7 >Emitted(74, 40) Source(44, 21) + SourceIndex(0)
+8 >Emitted(74, 53) Source(44, 28) + SourceIndex(0)
+9 >Emitted(74, 61) Source(64, 2) + SourceIndex(0)
---
>>> })(Thing = Sample.Thing || (Sample.Thing = {}));
1 >^^^^
@@ -1049,15 +1060,15 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(64, 5) Source(64, 1) + SourceIndex(0)
-2 >Emitted(64, 6) Source(64, 2) + SourceIndex(0)
-3 >Emitted(64, 8) Source(44, 15) + SourceIndex(0)
-4 >Emitted(64, 13) Source(44, 20) + SourceIndex(0)
-5 >Emitted(64, 16) Source(44, 15) + SourceIndex(0)
-6 >Emitted(64, 28) Source(44, 20) + SourceIndex(0)
-7 >Emitted(64, 33) Source(44, 15) + SourceIndex(0)
-8 >Emitted(64, 45) Source(44, 20) + SourceIndex(0)
-9 >Emitted(64, 53) Source(64, 2) + SourceIndex(0)
+1 >Emitted(75, 5) Source(64, 1) + SourceIndex(0)
+2 >Emitted(75, 6) Source(64, 2) + SourceIndex(0)
+3 >Emitted(75, 8) Source(44, 15) + SourceIndex(0)
+4 >Emitted(75, 13) Source(44, 20) + SourceIndex(0)
+5 >Emitted(75, 16) Source(44, 15) + SourceIndex(0)
+6 >Emitted(75, 28) Source(44, 20) + SourceIndex(0)
+7 >Emitted(75, 33) Source(44, 15) + SourceIndex(0)
+8 >Emitted(75, 45) Source(44, 20) + SourceIndex(0)
+9 >Emitted(75, 53) Source(64, 2) + SourceIndex(0)
---
>>>})(Sample || (Sample = {}));
1 >
@@ -1095,13 +1106,13 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(65, 1) Source(64, 1) + SourceIndex(0)
-2 >Emitted(65, 2) Source(64, 2) + SourceIndex(0)
-3 >Emitted(65, 4) Source(44, 8) + SourceIndex(0)
-4 >Emitted(65, 10) Source(44, 14) + SourceIndex(0)
-5 >Emitted(65, 15) Source(44, 8) + SourceIndex(0)
-6 >Emitted(65, 21) Source(44, 14) + SourceIndex(0)
-7 >Emitted(65, 29) Source(64, 2) + SourceIndex(0)
+1 >Emitted(76, 1) Source(64, 1) + SourceIndex(0)
+2 >Emitted(76, 2) Source(64, 2) + SourceIndex(0)
+3 >Emitted(76, 4) Source(44, 8) + SourceIndex(0)
+4 >Emitted(76, 10) Source(44, 14) + SourceIndex(0)
+5 >Emitted(76, 15) Source(44, 8) + SourceIndex(0)
+6 >Emitted(76, 21) Source(44, 14) + SourceIndex(0)
+7 >Emitted(76, 29) Source(64, 2) + SourceIndex(0)
---
>>>var AbstractMode = /** @class */ (function () {
1->
@@ -1110,13 +1121,13 @@ sourceFile:recursiveClassReferenceTest.ts
>
>interface IMode { getInitialState(): IState;}
>
-1->Emitted(66, 1) Source(67, 1) + SourceIndex(0)
+1->Emitted(77, 1) Source(67, 1) + SourceIndex(0)
---
>>> function AbstractMode() {
1->^^^^
2 > ^^->
1->
-1->Emitted(67, 5) Source(67, 1) + SourceIndex(0)
+1->Emitted(78, 5) Source(67, 1) + SourceIndex(0)
---
>>> }
1->^^^^
@@ -1124,8 +1135,8 @@ sourceFile:recursiveClassReferenceTest.ts
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->class AbstractMode implements IMode { public getInitialState(): IState { return null;}
2 > }
-1->Emitted(68, 5) Source(67, 88) + SourceIndex(0)
-2 >Emitted(68, 6) Source(67, 89) + SourceIndex(0)
+1->Emitted(79, 5) Source(67, 88) + SourceIndex(0)
+2 >Emitted(79, 6) Source(67, 89) + SourceIndex(0)
---
>>> AbstractMode.prototype.getInitialState = function () { return null; };
1->^^^^
@@ -1146,23 +1157,23 @@ sourceFile:recursiveClassReferenceTest.ts
7 > ;
8 >
9 > }
-1->Emitted(69, 5) Source(67, 46) + SourceIndex(0)
-2 >Emitted(69, 43) Source(67, 61) + SourceIndex(0)
-3 >Emitted(69, 46) Source(67, 39) + SourceIndex(0)
-4 >Emitted(69, 60) Source(67, 74) + SourceIndex(0)
-5 >Emitted(69, 67) Source(67, 81) + SourceIndex(0)
-6 >Emitted(69, 71) Source(67, 85) + SourceIndex(0)
-7 >Emitted(69, 72) Source(67, 86) + SourceIndex(0)
-8 >Emitted(69, 73) Source(67, 86) + SourceIndex(0)
-9 >Emitted(69, 74) Source(67, 87) + SourceIndex(0)
+1->Emitted(80, 5) Source(67, 46) + SourceIndex(0)
+2 >Emitted(80, 43) Source(67, 61) + SourceIndex(0)
+3 >Emitted(80, 46) Source(67, 39) + SourceIndex(0)
+4 >Emitted(80, 60) Source(67, 74) + SourceIndex(0)
+5 >Emitted(80, 67) Source(67, 81) + SourceIndex(0)
+6 >Emitted(80, 71) Source(67, 85) + SourceIndex(0)
+7 >Emitted(80, 72) Source(67, 86) + SourceIndex(0)
+8 >Emitted(80, 73) Source(67, 86) + SourceIndex(0)
+9 >Emitted(80, 74) Source(67, 87) + SourceIndex(0)
---
>>> return AbstractMode;
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^
1 >
2 > }
-1 >Emitted(70, 5) Source(67, 88) + SourceIndex(0)
-2 >Emitted(70, 24) Source(67, 89) + SourceIndex(0)
+1 >Emitted(81, 5) Source(67, 88) + SourceIndex(0)
+2 >Emitted(81, 24) Source(67, 89) + SourceIndex(0)
---
>>>}());
1 >
@@ -1174,10 +1185,10 @@ sourceFile:recursiveClassReferenceTest.ts
2 >}
3 >
4 > class AbstractMode implements IMode { public getInitialState(): IState { return null;} }
-1 >Emitted(71, 1) Source(67, 88) + SourceIndex(0)
-2 >Emitted(71, 2) Source(67, 89) + SourceIndex(0)
-3 >Emitted(71, 2) Source(67, 1) + SourceIndex(0)
-4 >Emitted(71, 6) Source(67, 89) + SourceIndex(0)
+1 >Emitted(82, 1) Source(67, 88) + SourceIndex(0)
+2 >Emitted(82, 2) Source(67, 89) + SourceIndex(0)
+3 >Emitted(82, 2) Source(67, 1) + SourceIndex(0)
+4 >Emitted(82, 6) Source(67, 89) + SourceIndex(0)
---
>>>(function (Sample) {
1->
@@ -1195,9 +1206,9 @@ sourceFile:recursiveClassReferenceTest.ts
>
2 >module
3 > Sample
-1->Emitted(72, 1) Source(76, 1) + SourceIndex(0)
-2 >Emitted(72, 12) Source(76, 8) + SourceIndex(0)
-3 >Emitted(72, 18) Source(76, 14) + SourceIndex(0)
+1->Emitted(83, 1) Source(76, 1) + SourceIndex(0)
+2 >Emitted(83, 12) Source(76, 8) + SourceIndex(0)
+3 >Emitted(83, 18) Source(76, 14) + SourceIndex(0)
---
>>> var Thing;
1 >^^^^
@@ -1233,10 +1244,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(73, 5) Source(76, 15) + SourceIndex(0)
-2 >Emitted(73, 9) Source(76, 15) + SourceIndex(0)
-3 >Emitted(73, 14) Source(76, 20) + SourceIndex(0)
-4 >Emitted(73, 15) Source(100, 2) + SourceIndex(0)
+1 >Emitted(84, 5) Source(76, 15) + SourceIndex(0)
+2 >Emitted(84, 9) Source(76, 15) + SourceIndex(0)
+3 >Emitted(84, 14) Source(76, 20) + SourceIndex(0)
+4 >Emitted(84, 15) Source(100, 2) + SourceIndex(0)
---
>>> (function (Thing) {
1->^^^^
@@ -1246,9 +1257,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Thing
-1->Emitted(74, 5) Source(76, 15) + SourceIndex(0)
-2 >Emitted(74, 16) Source(76, 15) + SourceIndex(0)
-3 >Emitted(74, 21) Source(76, 20) + SourceIndex(0)
+1->Emitted(85, 5) Source(76, 15) + SourceIndex(0)
+2 >Emitted(85, 16) Source(76, 15) + SourceIndex(0)
+3 >Emitted(85, 21) Source(76, 20) + SourceIndex(0)
---
>>> var Languages;
1->^^^^^^^^
@@ -1284,10 +1295,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1->Emitted(75, 9) Source(76, 21) + SourceIndex(0)
-2 >Emitted(75, 13) Source(76, 21) + SourceIndex(0)
-3 >Emitted(75, 22) Source(76, 30) + SourceIndex(0)
-4 >Emitted(75, 23) Source(100, 2) + SourceIndex(0)
+1->Emitted(86, 9) Source(76, 21) + SourceIndex(0)
+2 >Emitted(86, 13) Source(76, 21) + SourceIndex(0)
+3 >Emitted(86, 22) Source(76, 30) + SourceIndex(0)
+4 >Emitted(86, 23) Source(100, 2) + SourceIndex(0)
---
>>> (function (Languages) {
1->^^^^^^^^
@@ -1296,9 +1307,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > Languages
-1->Emitted(76, 9) Source(76, 21) + SourceIndex(0)
-2 >Emitted(76, 20) Source(76, 21) + SourceIndex(0)
-3 >Emitted(76, 29) Source(76, 30) + SourceIndex(0)
+1->Emitted(87, 9) Source(76, 21) + SourceIndex(0)
+2 >Emitted(87, 20) Source(76, 21) + SourceIndex(0)
+3 >Emitted(87, 29) Source(76, 30) + SourceIndex(0)
---
>>> var PlainText;
1 >^^^^^^^^^^^^
@@ -1334,10 +1345,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(77, 13) Source(76, 31) + SourceIndex(0)
-2 >Emitted(77, 17) Source(76, 31) + SourceIndex(0)
-3 >Emitted(77, 26) Source(76, 40) + SourceIndex(0)
-4 >Emitted(77, 27) Source(100, 2) + SourceIndex(0)
+1 >Emitted(88, 13) Source(76, 31) + SourceIndex(0)
+2 >Emitted(88, 17) Source(76, 31) + SourceIndex(0)
+3 >Emitted(88, 26) Source(76, 40) + SourceIndex(0)
+4 >Emitted(88, 27) Source(100, 2) + SourceIndex(0)
---
>>> (function (PlainText) {
1->^^^^^^^^^^^^
@@ -1347,9 +1358,9 @@ sourceFile:recursiveClassReferenceTest.ts
1->
2 >
3 > PlainText
-1->Emitted(78, 13) Source(76, 31) + SourceIndex(0)
-2 >Emitted(78, 24) Source(76, 31) + SourceIndex(0)
-3 >Emitted(78, 33) Source(76, 40) + SourceIndex(0)
+1->Emitted(89, 13) Source(76, 31) + SourceIndex(0)
+2 >Emitted(89, 24) Source(76, 31) + SourceIndex(0)
+3 >Emitted(89, 33) Source(76, 40) + SourceIndex(0)
---
>>> var State = /** @class */ (function () {
1->^^^^^^^^^^^^^^^^
@@ -1357,7 +1368,7 @@ sourceFile:recursiveClassReferenceTest.ts
1-> {
>
>
-1->Emitted(79, 17) Source(78, 2) + SourceIndex(0)
+1->Emitted(90, 17) Source(78, 2) + SourceIndex(0)
---
>>> function State(mode) {
1->^^^^^^^^^^^^^^^^^^^^
@@ -1368,9 +1379,9 @@ sourceFile:recursiveClassReferenceTest.ts
>
2 > constructor(private
3 > mode: IMode
-1->Emitted(80, 21) Source(79, 9) + SourceIndex(0)
-2 >Emitted(80, 36) Source(79, 29) + SourceIndex(0)
-3 >Emitted(80, 40) Source(79, 40) + SourceIndex(0)
+1->Emitted(91, 21) Source(79, 9) + SourceIndex(0)
+2 >Emitted(91, 36) Source(79, 29) + SourceIndex(0)
+3 >Emitted(91, 40) Source(79, 40) + SourceIndex(0)
---
>>> this.mode = mode;
1->^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1383,11 +1394,11 @@ sourceFile:recursiveClassReferenceTest.ts
3 >
4 > mode
5 > : IMode
-1->Emitted(81, 25) Source(79, 29) + SourceIndex(0)
-2 >Emitted(81, 34) Source(79, 33) + SourceIndex(0)
-3 >Emitted(81, 37) Source(79, 29) + SourceIndex(0)
-4 >Emitted(81, 41) Source(79, 33) + SourceIndex(0)
-5 >Emitted(81, 42) Source(79, 40) + SourceIndex(0)
+1->Emitted(92, 25) Source(79, 29) + SourceIndex(0)
+2 >Emitted(92, 34) Source(79, 33) + SourceIndex(0)
+3 >Emitted(92, 37) Source(79, 29) + SourceIndex(0)
+4 >Emitted(92, 41) Source(79, 33) + SourceIndex(0)
+5 >Emitted(92, 42) Source(79, 40) + SourceIndex(0)
---
>>> }
1 >^^^^^^^^^^^^^^^^^^^^
@@ -1395,8 +1406,8 @@ sourceFile:recursiveClassReferenceTest.ts
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >) {
2 > }
-1 >Emitted(82, 21) Source(79, 44) + SourceIndex(0)
-2 >Emitted(82, 22) Source(79, 45) + SourceIndex(0)
+1 >Emitted(93, 21) Source(79, 44) + SourceIndex(0)
+2 >Emitted(93, 22) Source(79, 45) + SourceIndex(0)
---
>>> State.prototype.clone = function () {
1->^^^^^^^^^^^^^^^^^^^^
@@ -1406,9 +1417,9 @@ sourceFile:recursiveClassReferenceTest.ts
> public
2 > clone
3 >
-1->Emitted(83, 21) Source(80, 10) + SourceIndex(0)
-2 >Emitted(83, 42) Source(80, 15) + SourceIndex(0)
-3 >Emitted(83, 45) Source(80, 3) + SourceIndex(0)
+1->Emitted(94, 21) Source(80, 10) + SourceIndex(0)
+2 >Emitted(94, 42) Source(80, 15) + SourceIndex(0)
+3 >Emitted(94, 45) Source(80, 3) + SourceIndex(0)
---
>>> return this;
1 >^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1420,10 +1431,10 @@ sourceFile:recursiveClassReferenceTest.ts
2 > return
3 > this
4 > ;
-1 >Emitted(84, 25) Source(81, 4) + SourceIndex(0)
-2 >Emitted(84, 32) Source(81, 11) + SourceIndex(0)
-3 >Emitted(84, 36) Source(81, 15) + SourceIndex(0)
-4 >Emitted(84, 37) Source(81, 16) + SourceIndex(0)
+1 >Emitted(95, 25) Source(81, 4) + SourceIndex(0)
+2 >Emitted(95, 32) Source(81, 11) + SourceIndex(0)
+3 >Emitted(95, 36) Source(81, 15) + SourceIndex(0)
+4 >Emitted(95, 37) Source(81, 16) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^^^^^^^^
@@ -1432,8 +1443,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(85, 21) Source(82, 3) + SourceIndex(0)
-2 >Emitted(85, 22) Source(82, 4) + SourceIndex(0)
+1 >Emitted(96, 21) Source(82, 3) + SourceIndex(0)
+2 >Emitted(96, 22) Source(82, 4) + SourceIndex(0)
---
>>> State.prototype.equals = function (other) {
1->^^^^^^^^^^^^^^^^^^^^
@@ -1448,11 +1459,11 @@ sourceFile:recursiveClassReferenceTest.ts
3 >
4 > public equals(
5 > other:IState
-1->Emitted(86, 21) Source(84, 10) + SourceIndex(0)
-2 >Emitted(86, 43) Source(84, 16) + SourceIndex(0)
-3 >Emitted(86, 46) Source(84, 3) + SourceIndex(0)
-4 >Emitted(86, 56) Source(84, 17) + SourceIndex(0)
-5 >Emitted(86, 61) Source(84, 29) + SourceIndex(0)
+1->Emitted(97, 21) Source(84, 10) + SourceIndex(0)
+2 >Emitted(97, 43) Source(84, 16) + SourceIndex(0)
+3 >Emitted(97, 46) Source(84, 3) + SourceIndex(0)
+4 >Emitted(97, 56) Source(84, 17) + SourceIndex(0)
+5 >Emitted(97, 61) Source(84, 29) + SourceIndex(0)
---
>>> return this === other;
1 >^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1468,12 +1479,12 @@ sourceFile:recursiveClassReferenceTest.ts
4 > ===
5 > other
6 > ;
-1 >Emitted(87, 25) Source(85, 4) + SourceIndex(0)
-2 >Emitted(87, 32) Source(85, 11) + SourceIndex(0)
-3 >Emitted(87, 36) Source(85, 15) + SourceIndex(0)
-4 >Emitted(87, 41) Source(85, 20) + SourceIndex(0)
-5 >Emitted(87, 46) Source(85, 25) + SourceIndex(0)
-6 >Emitted(87, 47) Source(85, 26) + SourceIndex(0)
+1 >Emitted(98, 25) Source(85, 4) + SourceIndex(0)
+2 >Emitted(98, 32) Source(85, 11) + SourceIndex(0)
+3 >Emitted(98, 36) Source(85, 15) + SourceIndex(0)
+4 >Emitted(98, 41) Source(85, 20) + SourceIndex(0)
+5 >Emitted(98, 46) Source(85, 25) + SourceIndex(0)
+6 >Emitted(98, 47) Source(85, 26) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^^^^^^^^
@@ -1482,8 +1493,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(88, 21) Source(86, 3) + SourceIndex(0)
-2 >Emitted(88, 22) Source(86, 4) + SourceIndex(0)
+1 >Emitted(99, 21) Source(86, 3) + SourceIndex(0)
+2 >Emitted(99, 22) Source(86, 4) + SourceIndex(0)
---
>>> State.prototype.getMode = function () { return mode; };
1->^^^^^^^^^^^^^^^^^^^^
@@ -1506,15 +1517,15 @@ sourceFile:recursiveClassReferenceTest.ts
7 > ;
8 >
9 > }
-1->Emitted(89, 21) Source(88, 10) + SourceIndex(0)
-2 >Emitted(89, 44) Source(88, 17) + SourceIndex(0)
-3 >Emitted(89, 47) Source(88, 3) + SourceIndex(0)
-4 >Emitted(89, 61) Source(88, 29) + SourceIndex(0)
-5 >Emitted(89, 68) Source(88, 36) + SourceIndex(0)
-6 >Emitted(89, 72) Source(88, 40) + SourceIndex(0)
-7 >Emitted(89, 73) Source(88, 41) + SourceIndex(0)
-8 >Emitted(89, 74) Source(88, 42) + SourceIndex(0)
-9 >Emitted(89, 75) Source(88, 43) + SourceIndex(0)
+1->Emitted(100, 21) Source(88, 10) + SourceIndex(0)
+2 >Emitted(100, 44) Source(88, 17) + SourceIndex(0)
+3 >Emitted(100, 47) Source(88, 3) + SourceIndex(0)
+4 >Emitted(100, 61) Source(88, 29) + SourceIndex(0)
+5 >Emitted(100, 68) Source(88, 36) + SourceIndex(0)
+6 >Emitted(100, 72) Source(88, 40) + SourceIndex(0)
+7 >Emitted(100, 73) Source(88, 41) + SourceIndex(0)
+8 >Emitted(100, 74) Source(88, 42) + SourceIndex(0)
+9 >Emitted(100, 75) Source(88, 43) + SourceIndex(0)
---
>>> return State;
1 >^^^^^^^^^^^^^^^^^^^^
@@ -1522,8 +1533,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(90, 21) Source(89, 2) + SourceIndex(0)
-2 >Emitted(90, 33) Source(89, 3) + SourceIndex(0)
+1 >Emitted(101, 21) Source(89, 2) + SourceIndex(0)
+2 >Emitted(101, 33) Source(89, 3) + SourceIndex(0)
---
>>> }());
1 >^^^^^^^^^^^^^^^^
@@ -1546,10 +1557,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> public getMode(): IMode { return mode; }
> }
-1 >Emitted(91, 17) Source(89, 2) + SourceIndex(0)
-2 >Emitted(91, 18) Source(89, 3) + SourceIndex(0)
-3 >Emitted(91, 18) Source(78, 2) + SourceIndex(0)
-4 >Emitted(91, 22) Source(89, 3) + SourceIndex(0)
+1 >Emitted(102, 17) Source(89, 2) + SourceIndex(0)
+2 >Emitted(102, 18) Source(89, 3) + SourceIndex(0)
+3 >Emitted(102, 18) Source(78, 2) + SourceIndex(0)
+4 >Emitted(102, 22) Source(89, 3) + SourceIndex(0)
---
>>> PlainText.State = State;
1->^^^^^^^^^^^^^^^^
@@ -1572,10 +1583,10 @@ sourceFile:recursiveClassReferenceTest.ts
> public getMode(): IMode { return mode; }
> }
4 >
-1->Emitted(92, 17) Source(78, 15) + SourceIndex(0)
-2 >Emitted(92, 32) Source(78, 20) + SourceIndex(0)
-3 >Emitted(92, 40) Source(89, 3) + SourceIndex(0)
-4 >Emitted(92, 41) Source(89, 3) + SourceIndex(0)
+1->Emitted(103, 17) Source(78, 15) + SourceIndex(0)
+2 >Emitted(103, 32) Source(78, 20) + SourceIndex(0)
+3 >Emitted(103, 40) Source(89, 3) + SourceIndex(0)
+4 >Emitted(103, 41) Source(89, 3) + SourceIndex(0)
---
>>> var Mode = /** @class */ (function (_super) {
1->^^^^^^^^^^^^^^^^
@@ -1583,21 +1594,21 @@ sourceFile:recursiveClassReferenceTest.ts
1->
>
>
-1->Emitted(93, 17) Source(91, 2) + SourceIndex(0)
+1->Emitted(104, 17) Source(91, 2) + SourceIndex(0)
---
>>> __extends(Mode, _super);
1->^^^^^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^
1->export class Mode extends
2 > AbstractMode
-1->Emitted(94, 21) Source(91, 28) + SourceIndex(0)
-2 >Emitted(94, 45) Source(91, 40) + SourceIndex(0)
+1->Emitted(105, 21) Source(91, 28) + SourceIndex(0)
+2 >Emitted(105, 45) Source(91, 40) + SourceIndex(0)
---
>>> function Mode() {
1 >^^^^^^^^^^^^^^^^^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(95, 21) Source(91, 2) + SourceIndex(0)
+1 >Emitted(106, 21) Source(91, 2) + SourceIndex(0)
---
>>> return _super !== null && _super.apply(this, arguments) || this;
>>> }
@@ -1614,8 +1625,8 @@ sourceFile:recursiveClassReferenceTest.ts
>
>
2 > }
-1->Emitted(97, 21) Source(99, 2) + SourceIndex(0)
-2 >Emitted(97, 22) Source(99, 3) + SourceIndex(0)
+1->Emitted(108, 21) Source(99, 2) + SourceIndex(0)
+2 >Emitted(108, 22) Source(99, 3) + SourceIndex(0)
---
>>> // scenario 2
1->^^^^^^^^^^^^^^^^^^^^
@@ -1623,8 +1634,8 @@ sourceFile:recursiveClassReferenceTest.ts
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
2 > // scenario 2
-1->Emitted(98, 21) Source(93, 3) + SourceIndex(0)
-2 >Emitted(98, 34) Source(93, 16) + SourceIndex(0)
+1->Emitted(109, 21) Source(93, 3) + SourceIndex(0)
+2 >Emitted(109, 34) Source(93, 16) + SourceIndex(0)
---
>>> Mode.prototype.getInitialState = function () {
1->^^^^^^^^^^^^^^^^^^^^
@@ -1634,9 +1645,9 @@ sourceFile:recursiveClassReferenceTest.ts
> public
2 > getInitialState
3 >
-1->Emitted(99, 21) Source(94, 10) + SourceIndex(0)
-2 >Emitted(99, 51) Source(94, 25) + SourceIndex(0)
-3 >Emitted(99, 54) Source(94, 3) + SourceIndex(0)
+1->Emitted(110, 21) Source(94, 10) + SourceIndex(0)
+2 >Emitted(110, 51) Source(94, 25) + SourceIndex(0)
+3 >Emitted(110, 54) Source(94, 3) + SourceIndex(0)
---
>>> return new State(self);
1 >^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1656,14 +1667,14 @@ sourceFile:recursiveClassReferenceTest.ts
6 > self
7 > )
8 > ;
-1 >Emitted(100, 25) Source(95, 4) + SourceIndex(0)
-2 >Emitted(100, 32) Source(95, 11) + SourceIndex(0)
-3 >Emitted(100, 36) Source(95, 15) + SourceIndex(0)
-4 >Emitted(100, 41) Source(95, 20) + SourceIndex(0)
-5 >Emitted(100, 42) Source(95, 21) + SourceIndex(0)
-6 >Emitted(100, 46) Source(95, 25) + SourceIndex(0)
-7 >Emitted(100, 47) Source(95, 26) + SourceIndex(0)
-8 >Emitted(100, 48) Source(95, 27) + SourceIndex(0)
+1 >Emitted(111, 25) Source(95, 4) + SourceIndex(0)
+2 >Emitted(111, 32) Source(95, 11) + SourceIndex(0)
+3 >Emitted(111, 36) Source(95, 15) + SourceIndex(0)
+4 >Emitted(111, 41) Source(95, 20) + SourceIndex(0)
+5 >Emitted(111, 42) Source(95, 21) + SourceIndex(0)
+6 >Emitted(111, 46) Source(95, 25) + SourceIndex(0)
+7 >Emitted(111, 47) Source(95, 26) + SourceIndex(0)
+8 >Emitted(111, 48) Source(95, 27) + SourceIndex(0)
---
>>> };
1 >^^^^^^^^^^^^^^^^^^^^
@@ -1672,8 +1683,8 @@ sourceFile:recursiveClassReferenceTest.ts
1 >
>
2 > }
-1 >Emitted(101, 21) Source(96, 3) + SourceIndex(0)
-2 >Emitted(101, 22) Source(96, 4) + SourceIndex(0)
+1 >Emitted(112, 21) Source(96, 3) + SourceIndex(0)
+2 >Emitted(112, 22) Source(96, 4) + SourceIndex(0)
---
>>> return Mode;
1->^^^^^^^^^^^^^^^^^^^^
@@ -1684,8 +1695,8 @@ sourceFile:recursiveClassReferenceTest.ts
>
>
2 > }
-1->Emitted(102, 21) Source(99, 2) + SourceIndex(0)
-2 >Emitted(102, 32) Source(99, 3) + SourceIndex(0)
+1->Emitted(113, 21) Source(99, 2) + SourceIndex(0)
+2 >Emitted(113, 32) Source(99, 3) + SourceIndex(0)
---
>>> }(AbstractMode));
1->^^^^^^^^^^^^^^^^
@@ -1709,12 +1720,12 @@ sourceFile:recursiveClassReferenceTest.ts
>
>
> }
-1->Emitted(103, 17) Source(99, 2) + SourceIndex(0)
-2 >Emitted(103, 18) Source(99, 3) + SourceIndex(0)
-3 >Emitted(103, 18) Source(91, 2) + SourceIndex(0)
-4 >Emitted(103, 19) Source(91, 28) + SourceIndex(0)
-5 >Emitted(103, 31) Source(91, 40) + SourceIndex(0)
-6 >Emitted(103, 34) Source(99, 3) + SourceIndex(0)
+1->Emitted(114, 17) Source(99, 2) + SourceIndex(0)
+2 >Emitted(114, 18) Source(99, 3) + SourceIndex(0)
+3 >Emitted(114, 18) Source(91, 2) + SourceIndex(0)
+4 >Emitted(114, 19) Source(91, 28) + SourceIndex(0)
+5 >Emitted(114, 31) Source(91, 40) + SourceIndex(0)
+6 >Emitted(114, 34) Source(99, 3) + SourceIndex(0)
---
>>> PlainText.Mode = Mode;
1->^^^^^^^^^^^^^^^^
@@ -1734,10 +1745,10 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
4 >
-1->Emitted(104, 17) Source(91, 15) + SourceIndex(0)
-2 >Emitted(104, 31) Source(91, 19) + SourceIndex(0)
-3 >Emitted(104, 38) Source(99, 3) + SourceIndex(0)
-4 >Emitted(104, 39) Source(99, 3) + SourceIndex(0)
+1->Emitted(115, 17) Source(91, 15) + SourceIndex(0)
+2 >Emitted(115, 31) Source(91, 19) + SourceIndex(0)
+3 >Emitted(115, 38) Source(99, 3) + SourceIndex(0)
+4 >Emitted(115, 39) Source(99, 3) + SourceIndex(0)
---
>>> })(PlainText = Languages.PlainText || (Languages.PlainText = {}));
1->^^^^^^^^^^^^
@@ -1783,15 +1794,15 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1->Emitted(105, 13) Source(100, 1) + SourceIndex(0)
-2 >Emitted(105, 14) Source(100, 2) + SourceIndex(0)
-3 >Emitted(105, 16) Source(76, 31) + SourceIndex(0)
-4 >Emitted(105, 25) Source(76, 40) + SourceIndex(0)
-5 >Emitted(105, 28) Source(76, 31) + SourceIndex(0)
-6 >Emitted(105, 47) Source(76, 40) + SourceIndex(0)
-7 >Emitted(105, 52) Source(76, 31) + SourceIndex(0)
-8 >Emitted(105, 71) Source(76, 40) + SourceIndex(0)
-9 >Emitted(105, 79) Source(100, 2) + SourceIndex(0)
+1->Emitted(116, 13) Source(100, 1) + SourceIndex(0)
+2 >Emitted(116, 14) Source(100, 2) + SourceIndex(0)
+3 >Emitted(116, 16) Source(76, 31) + SourceIndex(0)
+4 >Emitted(116, 25) Source(76, 40) + SourceIndex(0)
+5 >Emitted(116, 28) Source(76, 31) + SourceIndex(0)
+6 >Emitted(116, 47) Source(76, 40) + SourceIndex(0)
+7 >Emitted(116, 52) Source(76, 31) + SourceIndex(0)
+8 >Emitted(116, 71) Source(76, 40) + SourceIndex(0)
+9 >Emitted(116, 79) Source(100, 2) + SourceIndex(0)
---
>>> })(Languages = Thing.Languages || (Thing.Languages = {}));
1 >^^^^^^^^
@@ -1836,15 +1847,15 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(106, 9) Source(100, 1) + SourceIndex(0)
-2 >Emitted(106, 10) Source(100, 2) + SourceIndex(0)
-3 >Emitted(106, 12) Source(76, 21) + SourceIndex(0)
-4 >Emitted(106, 21) Source(76, 30) + SourceIndex(0)
-5 >Emitted(106, 24) Source(76, 21) + SourceIndex(0)
-6 >Emitted(106, 39) Source(76, 30) + SourceIndex(0)
-7 >Emitted(106, 44) Source(76, 21) + SourceIndex(0)
-8 >Emitted(106, 59) Source(76, 30) + SourceIndex(0)
-9 >Emitted(106, 67) Source(100, 2) + SourceIndex(0)
+1 >Emitted(117, 9) Source(100, 1) + SourceIndex(0)
+2 >Emitted(117, 10) Source(100, 2) + SourceIndex(0)
+3 >Emitted(117, 12) Source(76, 21) + SourceIndex(0)
+4 >Emitted(117, 21) Source(76, 30) + SourceIndex(0)
+5 >Emitted(117, 24) Source(76, 21) + SourceIndex(0)
+6 >Emitted(117, 39) Source(76, 30) + SourceIndex(0)
+7 >Emitted(117, 44) Source(76, 21) + SourceIndex(0)
+8 >Emitted(117, 59) Source(76, 30) + SourceIndex(0)
+9 >Emitted(117, 67) Source(100, 2) + SourceIndex(0)
---
>>> })(Thing = Sample.Thing || (Sample.Thing = {}));
1 >^^^^
@@ -1889,15 +1900,15 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(107, 5) Source(100, 1) + SourceIndex(0)
-2 >Emitted(107, 6) Source(100, 2) + SourceIndex(0)
-3 >Emitted(107, 8) Source(76, 15) + SourceIndex(0)
-4 >Emitted(107, 13) Source(76, 20) + SourceIndex(0)
-5 >Emitted(107, 16) Source(76, 15) + SourceIndex(0)
-6 >Emitted(107, 28) Source(76, 20) + SourceIndex(0)
-7 >Emitted(107, 33) Source(76, 15) + SourceIndex(0)
-8 >Emitted(107, 45) Source(76, 20) + SourceIndex(0)
-9 >Emitted(107, 53) Source(100, 2) + SourceIndex(0)
+1 >Emitted(118, 5) Source(100, 1) + SourceIndex(0)
+2 >Emitted(118, 6) Source(100, 2) + SourceIndex(0)
+3 >Emitted(118, 8) Source(76, 15) + SourceIndex(0)
+4 >Emitted(118, 13) Source(76, 20) + SourceIndex(0)
+5 >Emitted(118, 16) Source(76, 15) + SourceIndex(0)
+6 >Emitted(118, 28) Source(76, 20) + SourceIndex(0)
+7 >Emitted(118, 33) Source(76, 15) + SourceIndex(0)
+8 >Emitted(118, 45) Source(76, 20) + SourceIndex(0)
+9 >Emitted(118, 53) Source(100, 2) + SourceIndex(0)
---
>>>})(Sample || (Sample = {}));
1 >
@@ -1939,12 +1950,12 @@ sourceFile:recursiveClassReferenceTest.ts
>
> }
> }
-1 >Emitted(108, 1) Source(100, 1) + SourceIndex(0)
-2 >Emitted(108, 2) Source(100, 2) + SourceIndex(0)
-3 >Emitted(108, 4) Source(76, 8) + SourceIndex(0)
-4 >Emitted(108, 10) Source(76, 14) + SourceIndex(0)
-5 >Emitted(108, 15) Source(76, 8) + SourceIndex(0)
-6 >Emitted(108, 21) Source(76, 14) + SourceIndex(0)
-7 >Emitted(108, 29) Source(100, 2) + SourceIndex(0)
+1 >Emitted(119, 1) Source(100, 1) + SourceIndex(0)
+2 >Emitted(119, 2) Source(100, 2) + SourceIndex(0)
+3 >Emitted(119, 4) Source(76, 8) + SourceIndex(0)
+4 >Emitted(119, 10) Source(76, 14) + SourceIndex(0)
+5 >Emitted(119, 15) Source(76, 8) + SourceIndex(0)
+6 >Emitted(119, 21) Source(76, 14) + SourceIndex(0)
+7 >Emitted(119, 29) Source(100, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=recursiveClassReferenceTest.js.map
\ No newline at end of file
diff --git a/tests/baselines/reference/recursiveComplicatedClasses.js b/tests/baselines/reference/recursiveComplicatedClasses.js
index 1b7f35cc33c3e..cfbe0d492dde6 100644
--- a/tests/baselines/reference/recursiveComplicatedClasses.js
+++ b/tests/baselines/reference/recursiveComplicatedClasses.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js
index 7deb3a732977c..7d42d2efaa4c9 100644
--- a/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js
+++ b/tests/baselines/reference/recursivelySpecializedConstructorDeclaration.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reexportClassDefinition.js b/tests/baselines/reference/reexportClassDefinition.js
index 8b06ab1f836f6..91a8d4b9ffee6 100644
--- a/tests/baselines/reference/reexportClassDefinition.js
+++ b/tests/baselines/reference/reexportClassDefinition.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reexportDefaultIsCallable.js b/tests/baselines/reference/reexportDefaultIsCallable.js
index 17d2df6823f73..2fb7412e5a66a 100644
--- a/tests/baselines/reference/reexportDefaultIsCallable.js
+++ b/tests/baselines/reference/reexportDefaultIsCallable.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/reexportedMissingAlias.js b/tests/baselines/reference/reexportedMissingAlias.js
index 27cc6b87a6c2e..cb69c7d72ac9d 100644
--- a/tests/baselines/reference/reexportedMissingAlias.js
+++ b/tests/baselines/reference/reexportedMissingAlias.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js
index 9102449c8f43c..c98769f940a3f 100644
--- a/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js
+++ b/tests/baselines/reference/relatedViaDiscriminatedTypeNoError.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js
index 931c4aed0cb99..09cf04fcd973e 100644
--- a/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js
+++ b/tests/baselines/reference/resolvingClassDeclarationWhenInBaseTypeResolution.js
@@ -1033,7 +1033,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/returnInConstructor1.js b/tests/baselines/reference/returnInConstructor1.js
index 6b40579442b47..b381c375766d1 100644
--- a/tests/baselines/reference/returnInConstructor1.js
+++ b/tests/baselines/reference/returnInConstructor1.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/returnStatements.js b/tests/baselines/reference/returnStatements.js
index ada629e19d8fe..7e37ca211f1d6 100644
--- a/tests/baselines/reference/returnStatements.js
+++ b/tests/baselines/reference/returnStatements.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js b/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js
index dfe5e199b6fe6..aeeb487135461 100644
--- a/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js
+++ b/tests/baselines/reference/returnTypePredicateIsInstantiateInContextOfTarget.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js
index 36f3d53eb86d7..e1f0b8a81ff55 100644
--- a/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js
+++ b/tests/baselines/reference/scopeCheckExtendedClassInsidePublicMethod2.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js
index 414812ff13ccc..e630318809824 100644
--- a/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js
+++ b/tests/baselines/reference/scopeCheckExtendedClassInsideStaticMethod1.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/scopeTests.js b/tests/baselines/reference/scopeTests.js
index 6b019c25819b6..2518d336f2620 100644
--- a/tests/baselines/reference/scopeTests.js
+++ b/tests/baselines/reference/scopeTests.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/shadowPrivateMembers.js b/tests/baselines/reference/shadowPrivateMembers.js
index 63ee6b2ecf980..916526d07a443 100644
--- a/tests/baselines/reference/shadowPrivateMembers.js
+++ b/tests/baselines/reference/shadowPrivateMembers.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js
index 5cd3aa467804b..813f3e1fc6301 100644
--- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js
+++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map
index 978d87c83e953..57997fee4fd89 100644
--- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map
+++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map
@@ -1,3 +1,3 @@
//// [sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map]
-{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;;QACW,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"}
-//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7IHRoaXMuY29uc3RydWN0b3IgPSBkOyB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBBYnN0cmFjdEdyZWV0ZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgZnVuY3Rpb24gQWJzdHJhY3RHcmVldGVyKCkgew0KICAgIH0NCiAgICByZXR1cm4gQWJzdHJhY3RHcmVldGVyOw0KfSgpKTsNCnZhciBHcmVldGVyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKF9zdXBlcikgew0KICAgIF9fZXh0ZW5kcyhHcmVldGVyLCBfc3VwZXIpOw0KICAgIGZ1bmN0aW9uIEdyZWV0ZXIoKSB7DQogICAgICAgIHZhciBfdGhpcyA9IF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5hID0gMTA7DQogICAgICAgIF90aGlzLm5hbWVBID0gIlRlbiI7DQogICAgICAgIHJldHVybiBfdGhpczsNCiAgICB9DQogICAgcmV0dXJuIEdyZWV0ZXI7DQp9KEFic3RyYWN0R3JlZXRlcikpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQTtJQUFBO0lBQ0EsQ0FBQztJQUFELHNCQUFDO0FBQUQsQ0FBQyxBQURELElBQ0M7QUFFRDtJQUFzQiwyQkFBZTtJQUFyQzs7UUFDVyxPQUFDLEdBQUcsRUFBRSxDQUFDO1FBQ1AsV0FBSyxHQUFHLEtBQUssQ0FBQzs7SUFDekIsQ0FBQztJQUFELGNBQUM7QUFBRCxDQUFDLEFBSEQsQ0FBc0IsZUFBZSxHQUdwQyJ9,Y2xhc3MgQWJzdHJhY3RHcmVldGVyIHsKfQoKY2xhc3MgR3JlZXRlciBleHRlbmRzIEFic3RyYWN0R3JlZXRlciB7CiAgICBwdWJsaWMgYSA9IDEwOwogICAgcHVibGljIG5hbWVBID0gIlRlbiI7Cn0=
+{"version":3,"file":"sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js","sourceRoot":"","sources":["sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IAAA;IACA,CAAC;IAAD,sBAAC;AAAD,CAAC,AADD,IACC;AAED;IAAsB,2BAAe;IAArC;;QACW,OAAC,GAAG,EAAE,CAAC;QACP,WAAK,GAAG,KAAK,CAAC;;IACzB,CAAC;IAAD,cAAC;AAAD,CAAC,AAHD,CAAsB,eAAe,GAGpC"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fZXh0ZW5kcyA9ICh0aGlzICYmIHRoaXMuX19leHRlbmRzKSB8fCAoZnVuY3Rpb24gKCkgew0KICAgIHZhciBleHRlbmRTdGF0aWNzID0gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyA9IE9iamVjdC5zZXRQcm90b3R5cGVPZiB8fA0KICAgICAgICAgICAgKHsgX19wcm90b19fOiBbXSB9IGluc3RhbmNlb2YgQXJyYXkgJiYgZnVuY3Rpb24gKGQsIGIpIHsgZC5fX3Byb3RvX18gPSBiOyB9KSB8fA0KICAgICAgICAgICAgZnVuY3Rpb24gKGQsIGIpIHsgZm9yICh2YXIgcCBpbiBiKSBpZiAoT2JqZWN0LnByb3RvdHlwZS5oYXNPd25Qcm9wZXJ0eS5jYWxsKGIsIHApKSBkW3BdID0gYltwXTsgfTsNCiAgICAgICAgcmV0dXJuIGV4dGVuZFN0YXRpY3MoZCwgYik7DQogICAgfTsNCiAgICByZXR1cm4gZnVuY3Rpb24gKGQsIGIpIHsNCiAgICAgICAgaWYgKHR5cGVvZiBiICE9PSAiZnVuY3Rpb24iICYmIGIgIT09IG51bGwpDQogICAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCJDbGFzcyBleHRlbmRzIHZhbHVlICIgKyBTdHJpbmcoYikgKyAiIGlzIG5vdCBhIGNvbnN0cnVjdG9yIG9yIG51bGwiKTsNCiAgICAgICAgZXh0ZW5kU3RhdGljcyhkLCBiKTsNCiAgICAgICAgZnVuY3Rpb24gX18oKSB7DQogICAgICAgICAgICBpZiAoT2JqZWN0LmRlZmluZVByb3BlcnR5KSB7DQogICAgICAgICAgICAgICAgT2JqZWN0LmRlZmluZVByb3BlcnR5KHRoaXMsICJjb25zdHJ1Y3RvciIsIHsNCiAgICAgICAgICAgICAgICAgICAgdmFsdWU6IGQsDQogICAgICAgICAgICAgICAgICAgIHdyaXRhYmxlOiB0cnVlLA0KICAgICAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSwNCiAgICAgICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlDQogICAgICAgICAgICAgICAgfSk7DQogICAgICAgICAgICB9IGVsc2Ugew0KICAgICAgICAgICAgICAgIHRoaXMuY29uc3RydWN0b3IgPSBkOw0KICAgICAgICAgICAgfQ0KICAgICAgICB9DQogICAgICAgIGQucHJvdG90eXBlID0gYiA9PT0gbnVsbCA/IE9iamVjdC5jcmVhdGUoYikgOiAoX18ucHJvdG90eXBlID0gYi5wcm90b3R5cGUsIG5ldyBfXygpKTsNCiAgICB9Ow0KfSkoKTsNCnZhciBBYnN0cmFjdEdyZWV0ZXIgPSAvKiogQGNsYXNzICovIChmdW5jdGlvbiAoKSB7DQogICAgZnVuY3Rpb24gQWJzdHJhY3RHcmVldGVyKCkgew0KICAgIH0NCiAgICByZXR1cm4gQWJzdHJhY3RHcmVldGVyOw0KfSgpKTsNCnZhciBHcmVldGVyID0gLyoqIEBjbGFzcyAqLyAoZnVuY3Rpb24gKF9zdXBlcikgew0KICAgIF9fZXh0ZW5kcyhHcmVldGVyLCBfc3VwZXIpOw0KICAgIGZ1bmN0aW9uIEdyZWV0ZXIoKSB7DQogICAgICAgIHZhciBfdGhpcyA9IF9zdXBlciAhPT0gbnVsbCAmJiBfc3VwZXIuYXBwbHkodGhpcywgYXJndW1lbnRzKSB8fCB0aGlzOw0KICAgICAgICBfdGhpcy5hID0gMTA7DQogICAgICAgIF90aGlzLm5hbWVBID0gIlRlbiI7DQogICAgICAgIHJldHVybiBfdGhpczsNCiAgICB9DQogICAgcmV0dXJuIEdyZWV0ZXI7DQp9KEFic3RyYWN0R3JlZXRlcikpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic291cmNlTWFwVmFsaWRhdGlvbkNsYXNzV2l0aERlZmF1bHRDb25zdHJ1Y3RvckFuZEV4dGVuZHNDbGF1c2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzb3VyY2VNYXBWYWxpZGF0aW9uQ2xhc3NXaXRoRGVmYXVsdENvbnN0cnVjdG9yQW5kRXh0ZW5kc0NsYXVzZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0lBQUE7SUFDQSxDQUFDO0lBQUQsc0JBQUM7QUFBRCxDQUFDLEFBREQsSUFDQztBQUVEO0lBQXNCLDJCQUFlO0lBQXJDOztRQUNXLE9BQUMsR0FBRyxFQUFFLENBQUM7UUFDUCxXQUFLLEdBQUcsS0FBSyxDQUFDOztJQUN6QixDQUFDO0lBQUQsY0FBQztBQUFELENBQUMsQUFIRCxDQUFzQixlQUFlLEdBR3BDIn0=,Y2xhc3MgQWJzdHJhY3RHcmVldGVyIHsKfQoKY2xhc3MgR3JlZXRlciBleHRlbmRzIEFic3RyYWN0R3JlZXRlciB7CiAgICBwdWJsaWMgYSA9IDEwOwogICAgcHVibGljIG5hbWVBID0gIlRlbiI7Cn0=
diff --git a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt
index 63e48feb6dabd..7d6c7216a144d 100644
--- a/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt
+++ b/tests/baselines/reference/sourceMapValidationClassWithDefaultConstructorAndExtendsClause.sourcemap.txt
@@ -19,7 +19,18 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
>>> if (typeof b !== "function" && b !== null)
>>> throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
>>> extendStatics(d, b);
->>> function __() { this.constructor = d; }
+>>> function __() {
+>>> if (Object.defineProperty) {
+>>> Object.defineProperty(this, "constructor", {
+>>> value: d,
+>>> writable: true,
+>>> enumerable: false,
+>>> configurable: true
+>>> });
+>>> } else {
+>>> this.constructor = d;
+>>> }
+>>> }
>>> d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
>>> };
>>>})();
@@ -27,13 +38,13 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
1 >
2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(16, 1) Source(1, 1) + SourceIndex(0)
+1 >Emitted(27, 1) Source(1, 1) + SourceIndex(0)
---
>>> function AbstractGreeter() {
1->^^^^
2 > ^^->
1->
-1->Emitted(17, 5) Source(1, 1) + SourceIndex(0)
+1->Emitted(28, 5) Source(1, 1) + SourceIndex(0)
---
>>> }
1->^^^^
@@ -42,16 +53,16 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
1->class AbstractGreeter {
>
2 > }
-1->Emitted(18, 5) Source(2, 1) + SourceIndex(0)
-2 >Emitted(18, 6) Source(2, 2) + SourceIndex(0)
+1->Emitted(29, 5) Source(2, 1) + SourceIndex(0)
+2 >Emitted(29, 6) Source(2, 2) + SourceIndex(0)
---
>>> return AbstractGreeter;
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^
1->
2 > }
-1->Emitted(19, 5) Source(2, 1) + SourceIndex(0)
-2 >Emitted(19, 27) Source(2, 2) + SourceIndex(0)
+1->Emitted(30, 5) Source(2, 1) + SourceIndex(0)
+2 >Emitted(30, 27) Source(2, 2) + SourceIndex(0)
---
>>>}());
1 >
@@ -64,10 +75,10 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
3 >
4 > class AbstractGreeter {
> }
-1 >Emitted(20, 1) Source(2, 1) + SourceIndex(0)
-2 >Emitted(20, 2) Source(2, 2) + SourceIndex(0)
-3 >Emitted(20, 2) Source(1, 1) + SourceIndex(0)
-4 >Emitted(20, 6) Source(2, 2) + SourceIndex(0)
+1 >Emitted(31, 1) Source(2, 1) + SourceIndex(0)
+2 >Emitted(31, 2) Source(2, 2) + SourceIndex(0)
+3 >Emitted(31, 2) Source(1, 1) + SourceIndex(0)
+4 >Emitted(31, 6) Source(2, 2) + SourceIndex(0)
---
>>>var Greeter = /** @class */ (function (_super) {
1->
@@ -75,21 +86,21 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
1->
>
>
-1->Emitted(21, 1) Source(4, 1) + SourceIndex(0)
+1->Emitted(32, 1) Source(4, 1) + SourceIndex(0)
---
>>> __extends(Greeter, _super);
1->^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^
1->class Greeter extends
2 > AbstractGreeter
-1->Emitted(22, 5) Source(4, 23) + SourceIndex(0)
-2 >Emitted(22, 32) Source(4, 38) + SourceIndex(0)
+1->Emitted(33, 5) Source(4, 23) + SourceIndex(0)
+2 >Emitted(33, 32) Source(4, 38) + SourceIndex(0)
---
>>> function Greeter() {
1 >^^^^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(23, 5) Source(4, 1) + SourceIndex(0)
+1 >Emitted(34, 5) Source(4, 1) + SourceIndex(0)
---
>>> var _this = _super !== null && _super.apply(this, arguments) || this;
>>> _this.a = 10;
@@ -105,11 +116,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
3 > =
4 > 10
5 > ;
-1->Emitted(25, 9) Source(5, 12) + SourceIndex(0)
-2 >Emitted(25, 16) Source(5, 13) + SourceIndex(0)
-3 >Emitted(25, 19) Source(5, 16) + SourceIndex(0)
-4 >Emitted(25, 21) Source(5, 18) + SourceIndex(0)
-5 >Emitted(25, 22) Source(5, 19) + SourceIndex(0)
+1->Emitted(36, 9) Source(5, 12) + SourceIndex(0)
+2 >Emitted(36, 16) Source(5, 13) + SourceIndex(0)
+3 >Emitted(36, 19) Source(5, 16) + SourceIndex(0)
+4 >Emitted(36, 21) Source(5, 18) + SourceIndex(0)
+5 >Emitted(36, 22) Source(5, 19) + SourceIndex(0)
---
>>> _this.nameA = "Ten";
1->^^^^^^^^
@@ -123,11 +134,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
3 > =
4 > "Ten"
5 > ;
-1->Emitted(26, 9) Source(6, 12) + SourceIndex(0)
-2 >Emitted(26, 20) Source(6, 17) + SourceIndex(0)
-3 >Emitted(26, 23) Source(6, 20) + SourceIndex(0)
-4 >Emitted(26, 28) Source(6, 25) + SourceIndex(0)
-5 >Emitted(26, 29) Source(6, 26) + SourceIndex(0)
+1->Emitted(37, 9) Source(6, 12) + SourceIndex(0)
+2 >Emitted(37, 20) Source(6, 17) + SourceIndex(0)
+3 >Emitted(37, 23) Source(6, 20) + SourceIndex(0)
+4 >Emitted(37, 28) Source(6, 25) + SourceIndex(0)
+5 >Emitted(37, 29) Source(6, 26) + SourceIndex(0)
---
>>> return _this;
>>> }
@@ -137,8 +148,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
1 >
>
2 > }
-1 >Emitted(28, 5) Source(7, 1) + SourceIndex(0)
-2 >Emitted(28, 6) Source(7, 2) + SourceIndex(0)
+1 >Emitted(39, 5) Source(7, 1) + SourceIndex(0)
+2 >Emitted(39, 6) Source(7, 2) + SourceIndex(0)
---
>>> return Greeter;
1->^^^^
@@ -146,8 +157,8 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
3 > ^^^->
1->
2 > }
-1->Emitted(29, 5) Source(7, 1) + SourceIndex(0)
-2 >Emitted(29, 19) Source(7, 2) + SourceIndex(0)
+1->Emitted(40, 5) Source(7, 1) + SourceIndex(0)
+2 >Emitted(40, 19) Source(7, 2) + SourceIndex(0)
---
>>>}(AbstractGreeter));
1->
@@ -166,11 +177,11 @@ sourceFile:sourceMapValidationClassWithDefaultConstructorAndExtendsClause.ts
> public a = 10;
> public nameA = "Ten";
> }
-1->Emitted(30, 1) Source(7, 1) + SourceIndex(0)
-2 >Emitted(30, 2) Source(7, 2) + SourceIndex(0)
-3 >Emitted(30, 2) Source(4, 1) + SourceIndex(0)
-4 >Emitted(30, 3) Source(4, 23) + SourceIndex(0)
-5 >Emitted(30, 18) Source(4, 38) + SourceIndex(0)
-6 >Emitted(30, 21) Source(7, 2) + SourceIndex(0)
+1->Emitted(41, 1) Source(7, 1) + SourceIndex(0)
+2 >Emitted(41, 2) Source(7, 2) + SourceIndex(0)
+3 >Emitted(41, 2) Source(4, 1) + SourceIndex(0)
+4 >Emitted(41, 3) Source(4, 23) + SourceIndex(0)
+5 >Emitted(41, 18) Source(4, 38) + SourceIndex(0)
+6 >Emitted(41, 21) Source(7, 2) + SourceIndex(0)
---
>>>//# sourceMappingURL=sourceMapValidationClassWithDefaultConstructorAndExtendsClause.js.map
\ No newline at end of file
diff --git a/tests/baselines/reference/specializedInheritedConstructors1.js b/tests/baselines/reference/specializedInheritedConstructors1.js
index 5aafed1b1cf66..511d72a0504b8 100644
--- a/tests/baselines/reference/specializedInheritedConstructors1.js
+++ b/tests/baselines/reference/specializedInheritedConstructors1.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/specializedOverloadWithRestParameters.js b/tests/baselines/reference/specializedOverloadWithRestParameters.js
index 8081307ff8cfd..5954029e4b2ae 100644
--- a/tests/baselines/reference/specializedOverloadWithRestParameters.js
+++ b/tests/baselines/reference/specializedOverloadWithRestParameters.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/spellingSuggestionJSXAttribute.js b/tests/baselines/reference/spellingSuggestionJSXAttribute.js
index 56fb4d068a569..b9d0b492bd363 100644
--- a/tests/baselines/reference/spellingSuggestionJSXAttribute.js
+++ b/tests/baselines/reference/spellingSuggestionJSXAttribute.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticAsIdentifier.js b/tests/baselines/reference/staticAsIdentifier.js
index 609c0e180f2b6..53a89ca638e79 100644
--- a/tests/baselines/reference/staticAsIdentifier.js
+++ b/tests/baselines/reference/staticAsIdentifier.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticFactory1.js b/tests/baselines/reference/staticFactory1.js
index b8d40852983a0..d6c9ad285faaf 100644
--- a/tests/baselines/reference/staticFactory1.js
+++ b/tests/baselines/reference/staticFactory1.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticIndexSignature3.js b/tests/baselines/reference/staticIndexSignature3.js
index b126fef1a206a..25fb1f8a88f06 100644
--- a/tests/baselines/reference/staticIndexSignature3.js
+++ b/tests/baselines/reference/staticIndexSignature3.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticInheritance.js b/tests/baselines/reference/staticInheritance.js
index 2ecd0a27826c1..6310d7784603d 100644
--- a/tests/baselines/reference/staticInheritance.js
+++ b/tests/baselines/reference/staticInheritance.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js
index 7ca5559eea459..2621d9872fc36 100644
--- a/tests/baselines/reference/staticMemberAccessOffDerivedType1.js
+++ b/tests/baselines/reference/staticMemberAccessOffDerivedType1.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticMismatchBecauseOfPrototype.js b/tests/baselines/reference/staticMismatchBecauseOfPrototype.js
index b6c2be6553a83..d65783e4be6c3 100644
--- a/tests/baselines/reference/staticMismatchBecauseOfPrototype.js
+++ b/tests/baselines/reference/staticMismatchBecauseOfPrototype.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/staticPropSuper.js b/tests/baselines/reference/staticPropSuper.js
index de208dc9e498d..1d956355b6ee7 100644
--- a/tests/baselines/reference/staticPropSuper.js
+++ b/tests/baselines/reference/staticPropSuper.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/strictModeInConstructor.js b/tests/baselines/reference/strictModeInConstructor.js
index 3009bd8e0183e..5d308d2e9079e 100644
--- a/tests/baselines/reference/strictModeInConstructor.js
+++ b/tests/baselines/reference/strictModeInConstructor.js
@@ -75,7 +75,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/strictModeReservedWord.js b/tests/baselines/reference/strictModeReservedWord.js
index 2c70259a061f5..3cfe3467eba93 100644
--- a/tests/baselines/reference/strictModeReservedWord.js
+++ b/tests/baselines/reference/strictModeReservedWord.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js
index 864ea71d415e8..27973d69a61ee 100644
--- a/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js
+++ b/tests/baselines/reference/strictModeReservedWordInClassDeclaration.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js
index dbbe41ce2a409..192a8414255b7 100644
--- a/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js
+++ b/tests/baselines/reference/stringIndexerConstrainsPropertyDeclarations2.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js b/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js
index 6e45e48ef2a99..b7d910d6ddcb9 100644
--- a/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js
+++ b/tests/baselines/reference/subSubClassCanAccessProtectedConstructor.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypesOfTypeParameter.js b/tests/baselines/reference/subtypesOfTypeParameter.js
index 1360dcc69d3bd..91b85ce64b54c 100644
--- a/tests/baselines/reference/subtypesOfTypeParameter.js
+++ b/tests/baselines/reference/subtypesOfTypeParameter.js
@@ -120,7 +120,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js
index 7a35a139e87ae..7ecfbf014f503 100644
--- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js
+++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints.js
@@ -182,7 +182,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js
index c2214fe653767..d5aee7522e91a 100644
--- a/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js
+++ b/tests/baselines/reference/subtypesOfTypeParameterWithConstraints4.js
@@ -93,7 +93,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js
index 7f7c36b5a387b..a142fd2f07422 100644
--- a/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js
+++ b/tests/baselines/reference/subtypesOfTypeParameterWithRecursiveConstraints.js
@@ -172,7 +172,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingTransitivity.js b/tests/baselines/reference/subtypingTransitivity.js
index ff4efac787569..262d9971b1942 100644
--- a/tests/baselines/reference/subtypingTransitivity.js
+++ b/tests/baselines/reference/subtypingTransitivity.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithCallSignatures2.js b/tests/baselines/reference/subtypingWithCallSignatures2.js
index 048d0cfe08dc9..a1416544a3ac3 100644
--- a/tests/baselines/reference/subtypingWithCallSignatures2.js
+++ b/tests/baselines/reference/subtypingWithCallSignatures2.js
@@ -187,7 +187,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithCallSignatures3.js b/tests/baselines/reference/subtypingWithCallSignatures3.js
index f0ceb80945b4b..d97a2c70a406a 100644
--- a/tests/baselines/reference/subtypingWithCallSignatures3.js
+++ b/tests/baselines/reference/subtypingWithCallSignatures3.js
@@ -134,7 +134,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithCallSignatures4.js b/tests/baselines/reference/subtypingWithCallSignatures4.js
index 19b5344546252..3f1ed2304d98c 100644
--- a/tests/baselines/reference/subtypingWithCallSignatures4.js
+++ b/tests/baselines/reference/subtypingWithCallSignatures4.js
@@ -126,7 +126,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithConstructSignatures2.js b/tests/baselines/reference/subtypingWithConstructSignatures2.js
index 47103fefa7c10..ce9a84c289367 100644
--- a/tests/baselines/reference/subtypingWithConstructSignatures2.js
+++ b/tests/baselines/reference/subtypingWithConstructSignatures2.js
@@ -187,7 +187,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithConstructSignatures3.js b/tests/baselines/reference/subtypingWithConstructSignatures3.js
index 4d35b0740a917..a666af416cb67 100644
--- a/tests/baselines/reference/subtypingWithConstructSignatures3.js
+++ b/tests/baselines/reference/subtypingWithConstructSignatures3.js
@@ -136,7 +136,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithConstructSignatures4.js b/tests/baselines/reference/subtypingWithConstructSignatures4.js
index 8334349aa709c..167e728701697 100644
--- a/tests/baselines/reference/subtypingWithConstructSignatures4.js
+++ b/tests/baselines/reference/subtypingWithConstructSignatures4.js
@@ -126,7 +126,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithConstructSignatures5.js b/tests/baselines/reference/subtypingWithConstructSignatures5.js
index 43184e2be9ea3..82debc58b33b4 100644
--- a/tests/baselines/reference/subtypingWithConstructSignatures5.js
+++ b/tests/baselines/reference/subtypingWithConstructSignatures5.js
@@ -64,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithConstructSignatures6.js b/tests/baselines/reference/subtypingWithConstructSignatures6.js
index 98ac37f2a8789..874542941c91c 100644
--- a/tests/baselines/reference/subtypingWithConstructSignatures6.js
+++ b/tests/baselines/reference/subtypingWithConstructSignatures6.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithNumericIndexer.js b/tests/baselines/reference/subtypingWithNumericIndexer.js
index b45bda5b8afe8..b62633a911446 100644
--- a/tests/baselines/reference/subtypingWithNumericIndexer.js
+++ b/tests/baselines/reference/subtypingWithNumericIndexer.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithNumericIndexer3.js b/tests/baselines/reference/subtypingWithNumericIndexer3.js
index 6291ed1589c40..d351867cce056 100644
--- a/tests/baselines/reference/subtypingWithNumericIndexer3.js
+++ b/tests/baselines/reference/subtypingWithNumericIndexer3.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithNumericIndexer4.js b/tests/baselines/reference/subtypingWithNumericIndexer4.js
index 5c4deee9979be..a408fab922040 100644
--- a/tests/baselines/reference/subtypingWithNumericIndexer4.js
+++ b/tests/baselines/reference/subtypingWithNumericIndexer4.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithObjectMembers.js b/tests/baselines/reference/subtypingWithObjectMembers.js
index 94824b2be6810..4f9f80396a629 100644
--- a/tests/baselines/reference/subtypingWithObjectMembers.js
+++ b/tests/baselines/reference/subtypingWithObjectMembers.js
@@ -81,7 +81,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithObjectMembers4.js b/tests/baselines/reference/subtypingWithObjectMembers4.js
index 987b9c8ff6b14..91c30526658a8 100644
--- a/tests/baselines/reference/subtypingWithObjectMembers4.js
+++ b/tests/baselines/reference/subtypingWithObjectMembers4.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js b/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js
index 7e3abafc80b6c..dd72e4383d07f 100644
--- a/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js
+++ b/tests/baselines/reference/subtypingWithObjectMembersAccessibility.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js b/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js
index b2597b223a227..1ddd72ef94a97 100644
--- a/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js
+++ b/tests/baselines/reference/subtypingWithObjectMembersAccessibility2.js
@@ -76,7 +76,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithStringIndexer.js b/tests/baselines/reference/subtypingWithStringIndexer.js
index 6dabcc7fc1c1c..725a965964b91 100644
--- a/tests/baselines/reference/subtypingWithStringIndexer.js
+++ b/tests/baselines/reference/subtypingWithStringIndexer.js
@@ -55,7 +55,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithStringIndexer3.js b/tests/baselines/reference/subtypingWithStringIndexer3.js
index 3b263a61f73a4..4087011a3f4b9 100644
--- a/tests/baselines/reference/subtypingWithStringIndexer3.js
+++ b/tests/baselines/reference/subtypingWithStringIndexer3.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/subtypingWithStringIndexer4.js b/tests/baselines/reference/subtypingWithStringIndexer4.js
index d3d7f866b409c..6dbe66afd31bb 100644
--- a/tests/baselines/reference/subtypingWithStringIndexer4.js
+++ b/tests/baselines/reference/subtypingWithStringIndexer4.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/super.js b/tests/baselines/reference/super.js
index 8c42c19db5adc..36c9c763a256b 100644
--- a/tests/baselines/reference/super.js
+++ b/tests/baselines/reference/super.js
@@ -51,7 +51,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/super1.js b/tests/baselines/reference/super1.js
index 2c956d6eaec52..9bcb9d2395bdc 100644
--- a/tests/baselines/reference/super1.js
+++ b/tests/baselines/reference/super1.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/super2.js b/tests/baselines/reference/super2.js
index a225919d2b119..666a09e5bc781 100644
--- a/tests/baselines/reference/super2.js
+++ b/tests/baselines/reference/super2.js
@@ -64,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superAccess.js b/tests/baselines/reference/superAccess.js
index 52840c360141c..f9a8fc03a1304 100644
--- a/tests/baselines/reference/superAccess.js
+++ b/tests/baselines/reference/superAccess.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superAccess2.js b/tests/baselines/reference/superAccess2.js
index 15c92c6e3d954..de1975c03e266 100644
--- a/tests/baselines/reference/superAccess2.js
+++ b/tests/baselines/reference/superAccess2.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superAccessCastedCall.js b/tests/baselines/reference/superAccessCastedCall.js
index d5b0af57f692b..de8610295da82 100644
--- a/tests/baselines/reference/superAccessCastedCall.js
+++ b/tests/baselines/reference/superAccessCastedCall.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superAccessInFatArrow1.js b/tests/baselines/reference/superAccessInFatArrow1.js
index 59c1f3d6d54b7..a872532971c76 100644
--- a/tests/baselines/reference/superAccessInFatArrow1.js
+++ b/tests/baselines/reference/superAccessInFatArrow1.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallArgsMustMatch.js b/tests/baselines/reference/superCallArgsMustMatch.js
index ef0926b4aed6e..17786f1be343c 100644
--- a/tests/baselines/reference/superCallArgsMustMatch.js
+++ b/tests/baselines/reference/superCallArgsMustMatch.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallAssignResult.js b/tests/baselines/reference/superCallAssignResult.js
index d1dbee1a0390d..efac8a92d5816 100644
--- a/tests/baselines/reference/superCallAssignResult.js
+++ b/tests/baselines/reference/superCallAssignResult.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing1.js b/tests/baselines/reference/superCallBeforeThisAccessing1.js
index f7cd0ca9cd014..541f03a767a04 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing1.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing1.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing2.js b/tests/baselines/reference/superCallBeforeThisAccessing2.js
index fda977387edf3..56ab532294a8a 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing2.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing2.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing3.js b/tests/baselines/reference/superCallBeforeThisAccessing3.js
index ea89301abe063..2ec7ae93b16b8 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing3.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing3.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing4.js b/tests/baselines/reference/superCallBeforeThisAccessing4.js
index 74d9c4cced109..ab65432310759 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing4.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing4.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing5.js b/tests/baselines/reference/superCallBeforeThisAccessing5.js
index 859a1ecea8732..7e7134582e886 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing5.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing5.js
@@ -21,7 +21,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing6.js b/tests/baselines/reference/superCallBeforeThisAccessing6.js
index 12eda62b8cc02..f9d93d7faa8c3 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing6.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing6.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing7.js b/tests/baselines/reference/superCallBeforeThisAccessing7.js
index b0e64b0972988..49af5a4b98ee9 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing7.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing7.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallBeforeThisAccessing8.js b/tests/baselines/reference/superCallBeforeThisAccessing8.js
index 206953d2fd103..9f4e152e52bd9 100644
--- a/tests/baselines/reference/superCallBeforeThisAccessing8.js
+++ b/tests/baselines/reference/superCallBeforeThisAccessing8.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js
index aa3c9ed7396d8..ae2e864a58579 100644
--- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js
+++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType1.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js
index 140ff9748b0a3..ff4e71a6ae8f9 100644
--- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js
+++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericType2.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js
index 2b056938eeb74..89e48f3ea65e0 100644
--- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js
+++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithIncorrectNumberOfTypeArguments1.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js
index e611355970e86..34e5168ff2c9a 100644
--- a/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js
+++ b/tests/baselines/reference/superCallFromClassThatDerivesFromGenericTypeButWithNoTypeArguments1.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js
index 10c20b728d566..121e5322ebafa 100644
--- a/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js
+++ b/tests/baselines/reference/superCallFromClassThatDerivesNonGenericTypeButWithTypeArguments1.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallInNonStaticMethod.js b/tests/baselines/reference/superCallInNonStaticMethod.js
index e737e20e9dc55..5f4cc1d5ea1e3 100644
--- a/tests/baselines/reference/superCallInNonStaticMethod.js
+++ b/tests/baselines/reference/superCallInNonStaticMethod.js
@@ -64,7 +64,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallInStaticMethod.js b/tests/baselines/reference/superCallInStaticMethod.js
index 89ee71b1c4690..772742b78016b 100644
--- a/tests/baselines/reference/superCallInStaticMethod.js
+++ b/tests/baselines/reference/superCallInStaticMethod.js
@@ -60,7 +60,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallInsideClassDeclaration.js b/tests/baselines/reference/superCallInsideClassDeclaration.js
index e2aa63f471880..94dab0d0ccd2f 100644
--- a/tests/baselines/reference/superCallInsideClassDeclaration.js
+++ b/tests/baselines/reference/superCallInsideClassDeclaration.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallInsideClassExpression.js b/tests/baselines/reference/superCallInsideClassExpression.js
index 073a6793902f3..83476ee0b1e53 100644
--- a/tests/baselines/reference/superCallInsideClassExpression.js
+++ b/tests/baselines/reference/superCallInsideClassExpression.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js
index 5601c0f7496a3..6d0565368cc06 100644
--- a/tests/baselines/reference/superCallInsideObjectLiteralExpression.js
+++ b/tests/baselines/reference/superCallInsideObjectLiteralExpression.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallOutsideConstructor.js b/tests/baselines/reference/superCallOutsideConstructor.js
index 9aa831e974ba2..351c94b2e23e5 100644
--- a/tests/baselines/reference/superCallOutsideConstructor.js
+++ b/tests/baselines/reference/superCallOutsideConstructor.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallParameterContextualTyping1.js b/tests/baselines/reference/superCallParameterContextualTyping1.js
index 365832a094e00..ee924fdfcdb79 100644
--- a/tests/baselines/reference/superCallParameterContextualTyping1.js
+++ b/tests/baselines/reference/superCallParameterContextualTyping1.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallParameterContextualTyping2.js b/tests/baselines/reference/superCallParameterContextualTyping2.js
index 9b80f39dc4ea7..43635813e8d50 100644
--- a/tests/baselines/reference/superCallParameterContextualTyping2.js
+++ b/tests/baselines/reference/superCallParameterContextualTyping2.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallParameterContextualTyping3.js b/tests/baselines/reference/superCallParameterContextualTyping3.js
index 66bf7c33d3a4a..c6a4059834e0a 100644
--- a/tests/baselines/reference/superCallParameterContextualTyping3.js
+++ b/tests/baselines/reference/superCallParameterContextualTyping3.js
@@ -45,7 +45,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallWithCommentEmit01.js b/tests/baselines/reference/superCallWithCommentEmit01.js
index a91b101253245..4b0c4b922e305 100644
--- a/tests/baselines/reference/superCallWithCommentEmit01.js
+++ b/tests/baselines/reference/superCallWithCommentEmit01.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallWithMissingBaseClass.js b/tests/baselines/reference/superCallWithMissingBaseClass.js
index 692ecdd809180..cbdf066e924e2 100644
--- a/tests/baselines/reference/superCallWithMissingBaseClass.js
+++ b/tests/baselines/reference/superCallWithMissingBaseClass.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCalls.js b/tests/baselines/reference/superCalls.js
index 6669257d77490..c7f768d206b06 100644
--- a/tests/baselines/reference/superCalls.js
+++ b/tests/baselines/reference/superCalls.js
@@ -44,7 +44,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superCallsInConstructor.js b/tests/baselines/reference/superCallsInConstructor.js
index 5f71e79716d31..b1ad0f19a261f 100644
--- a/tests/baselines/reference/superCallsInConstructor.js
+++ b/tests/baselines/reference/superCallsInConstructor.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superElementAccess.js b/tests/baselines/reference/superElementAccess.js
index 9347903c09585..69763228118b8 100644
--- a/tests/baselines/reference/superElementAccess.js
+++ b/tests/baselines/reference/superElementAccess.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superErrors.js b/tests/baselines/reference/superErrors.js
index e01c2a5a6a055..749eb9c1458fd 100644
--- a/tests/baselines/reference/superErrors.js
+++ b/tests/baselines/reference/superErrors.js
@@ -65,7 +65,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superHasMethodsFromMergedInterface.js b/tests/baselines/reference/superHasMethodsFromMergedInterface.js
index eb1e909c03711..12699420acc87 100644
--- a/tests/baselines/reference/superHasMethodsFromMergedInterface.js
+++ b/tests/baselines/reference/superHasMethodsFromMergedInterface.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superInCatchBlock1.js b/tests/baselines/reference/superInCatchBlock1.js
index 923f928b830ba..b6dbe460a4582 100644
--- a/tests/baselines/reference/superInCatchBlock1.js
+++ b/tests/baselines/reference/superInCatchBlock1.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superInConstructorParam1.js b/tests/baselines/reference/superInConstructorParam1.js
index 5e2be0104c520..e806ba3bf34ee 100644
--- a/tests/baselines/reference/superInConstructorParam1.js
+++ b/tests/baselines/reference/superInConstructorParam1.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superInLambdas.js b/tests/baselines/reference/superInLambdas.js
index 92a3f577cd231..e413a490ae4cf 100644
--- a/tests/baselines/reference/superInLambdas.js
+++ b/tests/baselines/reference/superInLambdas.js
@@ -81,7 +81,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superInObjectLiterals_ES5.js b/tests/baselines/reference/superInObjectLiterals_ES5.js
index b7bdf79439802..39ff522449ba9 100644
--- a/tests/baselines/reference/superInObjectLiterals_ES5.js
+++ b/tests/baselines/reference/superInObjectLiterals_ES5.js
@@ -73,7 +73,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superInStaticMembers1(target=es5).js b/tests/baselines/reference/superInStaticMembers1(target=es5).js
index e96dc0ed5f453..4f0c9ff8a28ff 100644
--- a/tests/baselines/reference/superInStaticMembers1(target=es5).js
+++ b/tests/baselines/reference/superInStaticMembers1(target=es5).js
@@ -521,7 +521,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -654,7 +665,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -683,7 +705,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -712,7 +745,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -741,7 +785,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -773,7 +828,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -805,7 +871,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -837,7 +914,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -870,7 +958,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -906,7 +1005,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -935,7 +1045,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -967,7 +1088,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -995,7 +1127,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1026,7 +1169,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1057,7 +1211,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1091,7 +1256,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1119,7 +1295,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1150,7 +1337,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1178,7 +1376,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1209,7 +1418,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1237,7 +1457,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1268,7 +1499,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1296,7 +1538,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1327,7 +1580,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1355,7 +1619,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1386,7 +1661,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1414,7 +1700,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1445,7 +1742,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1473,7 +1781,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1504,7 +1823,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1532,7 +1862,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1563,7 +1904,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1591,7 +1943,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1622,7 +1985,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1650,7 +2024,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1681,7 +2066,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1710,7 +2106,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1742,7 +2149,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1771,7 +2189,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1803,7 +2232,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1836,7 +2276,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1872,7 +2323,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1910,7 +2372,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1950,7 +2423,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -1979,7 +2463,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -2011,7 +2506,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -2041,7 +2547,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superNewCall1.js b/tests/baselines/reference/superNewCall1.js
index 8c2512a7a72e2..bb7a31676201f 100644
--- a/tests/baselines/reference/superNewCall1.js
+++ b/tests/baselines/reference/superNewCall1.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superNoModifiersCrash.js b/tests/baselines/reference/superNoModifiersCrash.js
index ce44bb41fb126..799e683f9bdfc 100644
--- a/tests/baselines/reference/superNoModifiersCrash.js
+++ b/tests/baselines/reference/superNoModifiersCrash.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccess.js b/tests/baselines/reference/superPropertyAccess.js
index c522b4ad925f6..0471eba2564b8 100644
--- a/tests/baselines/reference/superPropertyAccess.js
+++ b/tests/baselines/reference/superPropertyAccess.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccess1.js b/tests/baselines/reference/superPropertyAccess1.js
index 255a29fb56b0f..3fbe390248539 100644
--- a/tests/baselines/reference/superPropertyAccess1.js
+++ b/tests/baselines/reference/superPropertyAccess1.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccess2.js b/tests/baselines/reference/superPropertyAccess2.js
index c60991b43173a..78fce6a487030 100644
--- a/tests/baselines/reference/superPropertyAccess2.js
+++ b/tests/baselines/reference/superPropertyAccess2.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js
index 836bea08c5588..a44693e47745b 100644
--- a/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js
+++ b/tests/baselines/reference/superPropertyAccessInComputedPropertiesOfNestedType_ES5.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccessInSuperCall01.js b/tests/baselines/reference/superPropertyAccessInSuperCall01.js
index a6b16a6634985..44d4f537ebdf1 100644
--- a/tests/baselines/reference/superPropertyAccessInSuperCall01.js
+++ b/tests/baselines/reference/superPropertyAccessInSuperCall01.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccessNoError.js b/tests/baselines/reference/superPropertyAccessNoError.js
index b090be1165834..d7fcbc235e7ef 100644
--- a/tests/baselines/reference/superPropertyAccessNoError.js
+++ b/tests/baselines/reference/superPropertyAccessNoError.js
@@ -90,7 +90,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyAccess_ES5.js b/tests/baselines/reference/superPropertyAccess_ES5.js
index cac0666f2301f..a973f10a88712 100644
--- a/tests/baselines/reference/superPropertyAccess_ES5.js
+++ b/tests/baselines/reference/superPropertyAccess_ES5.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js b/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js
index 5b592d9cdc159..8da18f4391028 100644
--- a/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js
+++ b/tests/baselines/reference/superPropertyElementNoUnusedLexicalThisCapture.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js
index 8a2eb80a0f94c..a1b78bae1b3e2 100644
--- a/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js
+++ b/tests/baselines/reference/superPropertyInConstructorBeforeSuperCall.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superSymbolIndexedAccess5.js b/tests/baselines/reference/superSymbolIndexedAccess5.js
index d0950dca03544..e5893827a2f06 100644
--- a/tests/baselines/reference/superSymbolIndexedAccess5.js
+++ b/tests/baselines/reference/superSymbolIndexedAccess5.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superSymbolIndexedAccess6.js b/tests/baselines/reference/superSymbolIndexedAccess6.js
index d7f4b1b446f03..afa92ef0b9699 100644
--- a/tests/baselines/reference/superSymbolIndexedAccess6.js
+++ b/tests/baselines/reference/superSymbolIndexedAccess6.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superWithGenericSpecialization.js b/tests/baselines/reference/superWithGenericSpecialization.js
index ab58f494333c4..29a8a1a077b9f 100644
--- a/tests/baselines/reference/superWithGenericSpecialization.js
+++ b/tests/baselines/reference/superWithGenericSpecialization.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superWithGenerics.js b/tests/baselines/reference/superWithGenerics.js
index daf908ad02582..29e8fbb8fb92e 100644
--- a/tests/baselines/reference/superWithGenerics.js
+++ b/tests/baselines/reference/superWithGenerics.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superWithTypeArgument.js b/tests/baselines/reference/superWithTypeArgument.js
index eb1842996f851..0578ae11b6c5f 100644
--- a/tests/baselines/reference/superWithTypeArgument.js
+++ b/tests/baselines/reference/superWithTypeArgument.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superWithTypeArgument2.js b/tests/baselines/reference/superWithTypeArgument2.js
index 64cd5d3abafb2..ffe8a84a42a47 100644
--- a/tests/baselines/reference/superWithTypeArgument2.js
+++ b/tests/baselines/reference/superWithTypeArgument2.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/superWithTypeArgument3.js b/tests/baselines/reference/superWithTypeArgument3.js
index b3e303158e180..af7635f4492f2 100644
--- a/tests/baselines/reference/superWithTypeArgument3.js
+++ b/tests/baselines/reference/superWithTypeArgument3.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js b/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js
index e6f82be7916b1..77013b8737d15 100644
--- a/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js
+++ b/tests/baselines/reference/super_inside-object-literal-getters-and-setters.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/switchStatements.js b/tests/baselines/reference/switchStatements.js
index 1d05064747e04..7f87b38b9c60a 100644
--- a/tests/baselines/reference/switchStatements.js
+++ b/tests/baselines/reference/switchStatements.js
@@ -69,7 +69,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/systemModuleWithSuperClass.js b/tests/baselines/reference/systemModuleWithSuperClass.js
index 2ec7eb7d142dd..21f7566a5d5db 100644
--- a/tests/baselines/reference/systemModuleWithSuperClass.js
+++ b/tests/baselines/reference/systemModuleWithSuperClass.js
@@ -42,7 +42,18 @@ System.register(["./foo"], function (exports_1, context_1) {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/targetTypeBaseCalls.js b/tests/baselines/reference/targetTypeBaseCalls.js
index 9fa78b106a758..dd94c06baf8df 100644
--- a/tests/baselines/reference/targetTypeBaseCalls.js
+++ b/tests/baselines/reference/targetTypeBaseCalls.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisAndSuperInStaticMembers3.js b/tests/baselines/reference/thisAndSuperInStaticMembers3.js
index ca9f9576e0942..8fb07d2f62f38 100644
--- a/tests/baselines/reference/thisAndSuperInStaticMembers3.js
+++ b/tests/baselines/reference/thisAndSuperInStaticMembers3.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisAndSuperInStaticMembers4.js b/tests/baselines/reference/thisAndSuperInStaticMembers4.js
index e5d972d3dd58f..6a44ecfb24d30 100644
--- a/tests/baselines/reference/thisAndSuperInStaticMembers4.js
+++ b/tests/baselines/reference/thisAndSuperInStaticMembers4.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js b/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js
index 80efa6d1e13d2..da6fe28095a46 100644
--- a/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js
+++ b/tests/baselines/reference/thisConditionalOnMethodReturnOfGenericInstance.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisInInvalidContexts.js b/tests/baselines/reference/thisInInvalidContexts.js
index 0a00c94b7f3d3..bcd0d0d4f962f 100644
--- a/tests/baselines/reference/thisInInvalidContexts.js
+++ b/tests/baselines/reference/thisInInvalidContexts.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisInInvalidContextsExternalModule.js b/tests/baselines/reference/thisInInvalidContextsExternalModule.js
index e57ab3102fba8..78c91552be7f0 100644
--- a/tests/baselines/reference/thisInInvalidContextsExternalModule.js
+++ b/tests/baselines/reference/thisInInvalidContextsExternalModule.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisInSuperCall.js b/tests/baselines/reference/thisInSuperCall.js
index db50c0c89b663..d8668e0e5b9d8 100644
--- a/tests/baselines/reference/thisInSuperCall.js
+++ b/tests/baselines/reference/thisInSuperCall.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisInSuperCall1.js b/tests/baselines/reference/thisInSuperCall1.js
index e803d5a64ba70..843f991ef5220 100644
--- a/tests/baselines/reference/thisInSuperCall1.js
+++ b/tests/baselines/reference/thisInSuperCall1.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisInSuperCall2.js b/tests/baselines/reference/thisInSuperCall2.js
index decc6c4eb47a0..e64185c3ada89 100644
--- a/tests/baselines/reference/thisInSuperCall2.js
+++ b/tests/baselines/reference/thisInSuperCall2.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisInSuperCall3.js b/tests/baselines/reference/thisInSuperCall3.js
index fc803faf25da0..530bc0d89fdc9 100644
--- a/tests/baselines/reference/thisInSuperCall3.js
+++ b/tests/baselines/reference/thisInSuperCall3.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js b/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js
index 31ce2365db880..126b8a5df1cd1 100644
--- a/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js
+++ b/tests/baselines/reference/thisIndexOnExistingReadonlyFieldIsNotNever.js
@@ -37,7 +37,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisTypeInFunctions.js b/tests/baselines/reference/thisTypeInFunctions.js
index a2c963743348e..7b7678c85cfab 100644
--- a/tests/baselines/reference/thisTypeInFunctions.js
+++ b/tests/baselines/reference/thisTypeInFunctions.js
@@ -208,7 +208,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/thisTypeInFunctions3.js b/tests/baselines/reference/thisTypeInFunctions3.js
index f9908aa59f3f0..c63f2d0795a56 100644
--- a/tests/baselines/reference/thisTypeInFunctions3.js
+++ b/tests/baselines/reference/thisTypeInFunctions3.js
@@ -24,7 +24,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxAttributeResolution15.js b/tests/baselines/reference/tsxAttributeResolution15.js
index 2a61a4690fe5d..7fb7989c8faeb 100644
--- a/tests/baselines/reference/tsxAttributeResolution15.js
+++ b/tests/baselines/reference/tsxAttributeResolution15.js
@@ -30,7 +30,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxAttributeResolution16.js b/tests/baselines/reference/tsxAttributeResolution16.js
index 6c350dbe3c944..1ffbf49a542da 100644
--- a/tests/baselines/reference/tsxAttributeResolution16.js
+++ b/tests/baselines/reference/tsxAttributeResolution16.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js
index aa90b193a74b0..eda35f81bb738 100644
--- a/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js
+++ b/tests/baselines/reference/tsxCorrectlyParseLessThanComparison1.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution1.js b/tests/baselines/reference/tsxDefaultAttributesResolution1.js
index 7bcc1f4d5ed28..810b879c43c39 100644
--- a/tests/baselines/reference/tsxDefaultAttributesResolution1.js
+++ b/tests/baselines/reference/tsxDefaultAttributesResolution1.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution2.js b/tests/baselines/reference/tsxDefaultAttributesResolution2.js
index ba1b8768f1bd7..e76c3e2f373ae 100644
--- a/tests/baselines/reference/tsxDefaultAttributesResolution2.js
+++ b/tests/baselines/reference/tsxDefaultAttributesResolution2.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDefaultAttributesResolution3.js b/tests/baselines/reference/tsxDefaultAttributesResolution3.js
index eb05b9d023aa9..525360b118138 100644
--- a/tests/baselines/reference/tsxDefaultAttributesResolution3.js
+++ b/tests/baselines/reference/tsxDefaultAttributesResolution3.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDynamicTagName5.js b/tests/baselines/reference/tsxDynamicTagName5.js
index f7dde3b13481b..c70234f5582a4 100644
--- a/tests/baselines/reference/tsxDynamicTagName5.js
+++ b/tests/baselines/reference/tsxDynamicTagName5.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDynamicTagName7.js b/tests/baselines/reference/tsxDynamicTagName7.js
index 0058be3018a1e..2ae1d1a83eb4b 100644
--- a/tests/baselines/reference/tsxDynamicTagName7.js
+++ b/tests/baselines/reference/tsxDynamicTagName7.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDynamicTagName8.js b/tests/baselines/reference/tsxDynamicTagName8.js
index 957ab31132b2e..9a88dc0b37db8 100644
--- a/tests/baselines/reference/tsxDynamicTagName8.js
+++ b/tests/baselines/reference/tsxDynamicTagName8.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxDynamicTagName9.js b/tests/baselines/reference/tsxDynamicTagName9.js
index 9d41b24cd67ef..b029f53bd9783 100644
--- a/tests/baselines/reference/tsxDynamicTagName9.js
+++ b/tests/baselines/reference/tsxDynamicTagName9.js
@@ -31,7 +31,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxExternalModuleEmit1.js b/tests/baselines/reference/tsxExternalModuleEmit1.js
index 13f08026fcb7c..d4409405b92f0 100644
--- a/tests/baselines/reference/tsxExternalModuleEmit1.js
+++ b/tests/baselines/reference/tsxExternalModuleEmit1.js
@@ -43,7 +43,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -74,7 +85,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxFragmentChildrenCheck.js b/tests/baselines/reference/tsxFragmentChildrenCheck.js
index 45b806531c1cb..ff795f4092dbf 100644
--- a/tests/baselines/reference/tsxFragmentChildrenCheck.js
+++ b/tests/baselines/reference/tsxFragmentChildrenCheck.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxGenericAttributesType3.js b/tests/baselines/reference/tsxGenericAttributesType3.js
index f2232eba8209d..eead10ff584ef 100644
--- a/tests/baselines/reference/tsxGenericAttributesType3.js
+++ b/tests/baselines/reference/tsxGenericAttributesType3.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxGenericAttributesType4.js b/tests/baselines/reference/tsxGenericAttributesType4.js
index bf51d7bfcda65..d6b4253258c05 100644
--- a/tests/baselines/reference/tsxGenericAttributesType4.js
+++ b/tests/baselines/reference/tsxGenericAttributesType4.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxGenericAttributesType5.js b/tests/baselines/reference/tsxGenericAttributesType5.js
index 67e6d8e05088a..7aae38d91a211 100644
--- a/tests/baselines/reference/tsxGenericAttributesType5.js
+++ b/tests/baselines/reference/tsxGenericAttributesType5.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxGenericAttributesType6.js b/tests/baselines/reference/tsxGenericAttributesType6.js
index 4d9a909b87c7e..5386d044233b7 100644
--- a/tests/baselines/reference/tsxGenericAttributesType6.js
+++ b/tests/baselines/reference/tsxGenericAttributesType6.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxGenericAttributesType9.js b/tests/baselines/reference/tsxGenericAttributesType9.js
index 5d94e6f103b5d..fff5c6f0b72a7 100644
--- a/tests/baselines/reference/tsxGenericAttributesType9.js
+++ b/tests/baselines/reference/tsxGenericAttributesType9.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxLibraryManagedAttributes.js b/tests/baselines/reference/tsxLibraryManagedAttributes.js
index 454cb063cfbb5..d8980b585b7a7 100644
--- a/tests/baselines/reference/tsxLibraryManagedAttributes.js
+++ b/tests/baselines/reference/tsxLibraryManagedAttributes.js
@@ -140,7 +140,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js b/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js
index b9e146103b770..5445950c8b293 100644
--- a/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js
+++ b/tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution1.js b/tests/baselines/reference/tsxSpreadAttributesResolution1.js
index f623ffbb380f9..e6500871d1f2a 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution1.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution1.js
@@ -29,7 +29,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution10.js b/tests/baselines/reference/tsxSpreadAttributesResolution10.js
index 4a2d54524c214..41a61514ce9e3 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution10.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution10.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution11.js b/tests/baselines/reference/tsxSpreadAttributesResolution11.js
index 917a5124b344d..abb65dd2e6e70 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution11.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution11.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution12.js b/tests/baselines/reference/tsxSpreadAttributesResolution12.js
index ea09198ca28e2..ec589b1fcad71 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution12.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution12.js
@@ -47,7 +47,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution17.js b/tests/baselines/reference/tsxSpreadAttributesResolution17.js
index 23f7f1c9bb5cd..705143c7275fa 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution17.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution17.js
@@ -34,7 +34,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution2.js b/tests/baselines/reference/tsxSpreadAttributesResolution2.js
index b32d3d61be271..bbd002db7251a 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution2.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution2.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution3.js b/tests/baselines/reference/tsxSpreadAttributesResolution3.js
index 016a27b5acf9f..1cfbc0e029e99 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution3.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution3.js
@@ -36,7 +36,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution4.js b/tests/baselines/reference/tsxSpreadAttributesResolution4.js
index 3b6da7d0c3003..4665c93e76697 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution4.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution4.js
@@ -49,7 +49,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution5.js b/tests/baselines/reference/tsxSpreadAttributesResolution5.js
index fdfd154484a97..16ccbfd48c658 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution5.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution5.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution6.js b/tests/baselines/reference/tsxSpreadAttributesResolution6.js
index fd41994f8a301..358eac0eb5035 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution6.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution6.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution7.js b/tests/baselines/reference/tsxSpreadAttributesResolution7.js
index fa20f6e495b46..a821a38e1a169 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution7.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution7.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution8.js b/tests/baselines/reference/tsxSpreadAttributesResolution8.js
index 274502a4bd10b..647100c3a0969 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution8.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution8.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadAttributesResolution9.js b/tests/baselines/reference/tsxSpreadAttributesResolution9.js
index ff34ab5694715..331ceca779320 100644
--- a/tests/baselines/reference/tsxSpreadAttributesResolution9.js
+++ b/tests/baselines/reference/tsxSpreadAttributesResolution9.js
@@ -39,7 +39,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js b/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js
index 39ef9039480f0..db2ad7f3d642b 100644
--- a/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js
+++ b/tests/baselines/reference/tsxSpreadDoesNotReportExcessProps.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxStatelessFunctionComponents2.js b/tests/baselines/reference/tsxStatelessFunctionComponents2.js
index ea70a2818dc75..1e54ddf6dc9bd 100644
--- a/tests/baselines/reference/tsxStatelessFunctionComponents2.js
+++ b/tests/baselines/reference/tsxStatelessFunctionComponents2.js
@@ -52,7 +52,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxUnionElementType3.js b/tests/baselines/reference/tsxUnionElementType3.js
index bd35aaeee8e2b..11c5bbd5ef8af 100644
--- a/tests/baselines/reference/tsxUnionElementType3.js
+++ b/tests/baselines/reference/tsxUnionElementType3.js
@@ -51,7 +51,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxUnionElementType4.js b/tests/baselines/reference/tsxUnionElementType4.js
index 683160776ae0e..6d6c5616587f2 100644
--- a/tests/baselines/reference/tsxUnionElementType4.js
+++ b/tests/baselines/reference/tsxUnionElementType4.js
@@ -50,7 +50,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/tsxUnionTypeComponent1.js b/tests/baselines/reference/tsxUnionTypeComponent1.js
index 5717a275bf48b..c821557709bb5 100644
--- a/tests/baselines/reference/tsxUnionTypeComponent1.js
+++ b/tests/baselines/reference/tsxUnionTypeComponent1.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js b/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js
index a98cc185dc6c7..d69eacf5cf51d 100644
--- a/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js
+++ b/tests/baselines/reference/typeAliasFunctionTypeSharedSymbol.js
@@ -28,7 +28,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeAssertions.js b/tests/baselines/reference/typeAssertions.js
index f20f4bd13b4e3..6ef445f51af1c 100644
--- a/tests/baselines/reference/typeAssertions.js
+++ b/tests/baselines/reference/typeAssertions.js
@@ -65,7 +65,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardConstructorDerivedClass.js b/tests/baselines/reference/typeGuardConstructorDerivedClass.js
index f7230f28ff501..0f1783d7a377b 100644
--- a/tests/baselines/reference/typeGuardConstructorDerivedClass.js
+++ b/tests/baselines/reference/typeGuardConstructorDerivedClass.js
@@ -80,7 +80,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardFunction.js b/tests/baselines/reference/typeGuardFunction.js
index e549dd922728d..b13b3019a6fc9 100644
--- a/tests/baselines/reference/typeGuardFunction.js
+++ b/tests/baselines/reference/typeGuardFunction.js
@@ -96,7 +96,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardFunctionErrors.js b/tests/baselines/reference/typeGuardFunctionErrors.js
index fe6896e44a832..0a338f3dd49df 100644
--- a/tests/baselines/reference/typeGuardFunctionErrors.js
+++ b/tests/baselines/reference/typeGuardFunctionErrors.js
@@ -181,7 +181,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardFunctionGenerics.js b/tests/baselines/reference/typeGuardFunctionGenerics.js
index a8c77a80783a3..8f8a9149954fd 100644
--- a/tests/baselines/reference/typeGuardFunctionGenerics.js
+++ b/tests/baselines/reference/typeGuardFunctionGenerics.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThis.js b/tests/baselines/reference/typeGuardFunctionOfFormThis.js
index f0cb81eff5abb..c884b9b742f59 100644
--- a/tests/baselines/reference/typeGuardFunctionOfFormThis.js
+++ b/tests/baselines/reference/typeGuardFunctionOfFormThis.js
@@ -155,7 +155,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js
index 3de4086386995..9749c51a03038 100644
--- a/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js
+++ b/tests/baselines/reference/typeGuardFunctionOfFormThisErrors.js
@@ -73,7 +73,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardOfFormInstanceOf.js b/tests/baselines/reference/typeGuardOfFormInstanceOf.js
index 583aa15bcc8a9..eba4afe5ba4b5 100644
--- a/tests/baselines/reference/typeGuardOfFormInstanceOf.js
+++ b/tests/baselines/reference/typeGuardOfFormInstanceOf.js
@@ -86,7 +86,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardOfFormIsType.js b/tests/baselines/reference/typeGuardOfFormIsType.js
index cfc7e73b5a9e6..a044216e5fed3 100644
--- a/tests/baselines/reference/typeGuardOfFormIsType.js
+++ b/tests/baselines/reference/typeGuardOfFormIsType.js
@@ -50,7 +50,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardOfFormThisMember.js b/tests/baselines/reference/typeGuardOfFormThisMember.js
index dca2ae2a07115..ccc39704b7fb3 100644
--- a/tests/baselines/reference/typeGuardOfFormThisMember.js
+++ b/tests/baselines/reference/typeGuardOfFormThisMember.js
@@ -96,7 +96,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js
index 761c17061a061..9fbddcadd228e 100644
--- a/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js
+++ b/tests/baselines/reference/typeGuardOfFormThisMemberErrors.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeMatch2.js b/tests/baselines/reference/typeMatch2.js
index 46d2680ea69c5..1abf8ef42fcea 100644
--- a/tests/baselines/reference/typeMatch2.js
+++ b/tests/baselines/reference/typeMatch2.js
@@ -58,7 +58,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfSuperCall.js b/tests/baselines/reference/typeOfSuperCall.js
index d1a506fad7923..8f7787d201b09 100644
--- a/tests/baselines/reference/typeOfSuperCall.js
+++ b/tests/baselines/reference/typeOfSuperCall.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers10(target=es5).js b/tests/baselines/reference/typeOfThisInStaticMembers10(target=es5).js
index aef556d849ee4..a15c7b440eef0 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers10(target=es5).js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers10(target=es5).js
@@ -62,7 +62,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers11(target=es5).js b/tests/baselines/reference/typeOfThisInStaticMembers11(target=es5).js
index 05e364f61087e..2d7c6fbbaf1b9 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers11(target=es5).js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers11(target=es5).js
@@ -62,7 +62,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers3(target=es5).js b/tests/baselines/reference/typeOfThisInStaticMembers3(target=es5).js
index 560c3c2ad6aef..53de2794d668a 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers3(target=es5).js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers3(target=es5).js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers4(target=es5).js b/tests/baselines/reference/typeOfThisInStaticMembers4(target=es5).js
index 9486bee0fad2f..0683ffb1c8490 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers4(target=es5).js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers4(target=es5).js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers6.js b/tests/baselines/reference/typeOfThisInStaticMembers6.js
index f1070269a1c20..1fec7ec23f5aa 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers6.js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers6.js
@@ -22,7 +22,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers7(target=es5).js b/tests/baselines/reference/typeOfThisInStaticMembers7(target=es5).js
index f44c2be017846..635ede813930b 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers7(target=es5).js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers7(target=es5).js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeOfThisInStaticMembers9(target=es5).js b/tests/baselines/reference/typeOfThisInStaticMembers9(target=es5).js
index b5d422e8fddf9..938d66c9f27d6 100644
--- a/tests/baselines/reference/typeOfThisInStaticMembers9(target=es5).js
+++ b/tests/baselines/reference/typeOfThisInStaticMembers9(target=es5).js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeParameterAsBaseClass.js b/tests/baselines/reference/typeParameterAsBaseClass.js
index 1cf7e0d42d783..4a0ebc94641af 100644
--- a/tests/baselines/reference/typeParameterAsBaseClass.js
+++ b/tests/baselines/reference/typeParameterAsBaseClass.js
@@ -16,7 +16,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeParameterAsBaseType.js b/tests/baselines/reference/typeParameterAsBaseType.js
index 2f05a9a043125..7d65a44c89c63 100644
--- a/tests/baselines/reference/typeParameterAsBaseType.js
+++ b/tests/baselines/reference/typeParameterAsBaseType.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeParameterExtendingUnion1.js b/tests/baselines/reference/typeParameterExtendingUnion1.js
index 641741f6a0c08..9f1b3c79f8fb0 100644
--- a/tests/baselines/reference/typeParameterExtendingUnion1.js
+++ b/tests/baselines/reference/typeParameterExtendingUnion1.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeParameterExtendingUnion2.js b/tests/baselines/reference/typeParameterExtendingUnion2.js
index 597c7c078618d..4947dfb4c02f4 100644
--- a/tests/baselines/reference/typeParameterExtendingUnion2.js
+++ b/tests/baselines/reference/typeParameterExtendingUnion2.js
@@ -26,7 +26,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typePredicateInherit.js b/tests/baselines/reference/typePredicateInherit.js
index 140ab72902701..0fcd026a441da 100644
--- a/tests/baselines/reference/typePredicateInherit.js
+++ b/tests/baselines/reference/typePredicateInherit.js
@@ -67,7 +67,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeRelationships.js b/tests/baselines/reference/typeRelationships.js
index 5fe24a93f1461..ff8f4a498b821 100644
--- a/tests/baselines/reference/typeRelationships.js
+++ b/tests/baselines/reference/typeRelationships.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeValueConflict1.js b/tests/baselines/reference/typeValueConflict1.js
index 8973ae6b10c82..f5832de37e845 100644
--- a/tests/baselines/reference/typeValueConflict1.js
+++ b/tests/baselines/reference/typeValueConflict1.js
@@ -25,7 +25,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeValueConflict2.js b/tests/baselines/reference/typeValueConflict2.js
index a5dc1d40e611a..8a4cd30d26ddd 100644
--- a/tests/baselines/reference/typeValueConflict2.js
+++ b/tests/baselines/reference/typeValueConflict2.js
@@ -32,7 +32,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeVariableTypeGuards.js b/tests/baselines/reference/typeVariableTypeGuards.js
index 20db164b2d325..56f81f57f3217 100644
--- a/tests/baselines/reference/typeVariableTypeGuards.js
+++ b/tests/baselines/reference/typeVariableTypeGuards.js
@@ -106,7 +106,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typeofClass2.js b/tests/baselines/reference/typeofClass2.js
index 513958ed7a143..ea387b506b2e3 100644
--- a/tests/baselines/reference/typeofClass2.js
+++ b/tests/baselines/reference/typeofClass2.js
@@ -35,7 +35,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typesWithSpecializedCallSignatures.js b/tests/baselines/reference/typesWithSpecializedCallSignatures.js
index be9ead25861d9..65a9be42905bd 100644
--- a/tests/baselines/reference/typesWithSpecializedCallSignatures.js
+++ b/tests/baselines/reference/typesWithSpecializedCallSignatures.js
@@ -56,7 +56,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/typesWithSpecializedConstructSignatures.js b/tests/baselines/reference/typesWithSpecializedConstructSignatures.js
index e5d7201222509..0fc5a7d7283ee 100644
--- a/tests/baselines/reference/typesWithSpecializedConstructSignatures.js
+++ b/tests/baselines/reference/typesWithSpecializedConstructSignatures.js
@@ -54,7 +54,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/undeclaredBase.js b/tests/baselines/reference/undeclaredBase.js
index 5cbd5322a1322..3809071d1ae54 100644
--- a/tests/baselines/reference/undeclaredBase.js
+++ b/tests/baselines/reference/undeclaredBase.js
@@ -17,7 +17,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/undefinedIsSubtypeOfEverything.js b/tests/baselines/reference/undefinedIsSubtypeOfEverything.js
index fb9e2223d06b0..60a5dec5140dc 100644
--- a/tests/baselines/reference/undefinedIsSubtypeOfEverything.js
+++ b/tests/baselines/reference/undefinedIsSubtypeOfEverything.js
@@ -136,7 +136,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/underscoreMapFirst.js b/tests/baselines/reference/underscoreMapFirst.js
index 386a6a0a6a05f..2e4ba67f4939b 100644
--- a/tests/baselines/reference/underscoreMapFirst.js
+++ b/tests/baselines/reference/underscoreMapFirst.js
@@ -62,7 +62,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/underscoreThisInDerivedClass01.js b/tests/baselines/reference/underscoreThisInDerivedClass01.js
index 70d93dae0b4d3..7e1193f44fde9 100644
--- a/tests/baselines/reference/underscoreThisInDerivedClass01.js
+++ b/tests/baselines/reference/underscoreThisInDerivedClass01.js
@@ -40,7 +40,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/underscoreThisInDerivedClass02.js b/tests/baselines/reference/underscoreThisInDerivedClass02.js
index 058bf49d118bd..7dbe0207c10ea 100644
--- a/tests/baselines/reference/underscoreThisInDerivedClass02.js
+++ b/tests/baselines/reference/underscoreThisInDerivedClass02.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unionTypeEquivalence.js b/tests/baselines/reference/unionTypeEquivalence.js
index 00b33df9cf045..314376e553ec9 100644
--- a/tests/baselines/reference/unionTypeEquivalence.js
+++ b/tests/baselines/reference/unionTypeEquivalence.js
@@ -33,7 +33,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unionTypeFromArrayLiteral.js b/tests/baselines/reference/unionTypeFromArrayLiteral.js
index d3439676599dd..426753dbe1b37 100644
--- a/tests/baselines/reference/unionTypeFromArrayLiteral.js
+++ b/tests/baselines/reference/unionTypeFromArrayLiteral.js
@@ -41,7 +41,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unionTypesAssignability.js b/tests/baselines/reference/unionTypesAssignability.js
index 25c5aece587c2..db8ce1f6c504a 100644
--- a/tests/baselines/reference/unionTypesAssignability.js
+++ b/tests/baselines/reference/unionTypesAssignability.js
@@ -87,7 +87,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unknownSymbols1.js b/tests/baselines/reference/unknownSymbols1.js
index e66301f0910b6..379fb82dcd24e 100644
--- a/tests/baselines/reference/unknownSymbols1.js
+++ b/tests/baselines/reference/unknownSymbols1.js
@@ -46,7 +46,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unspecializedConstraints.js b/tests/baselines/reference/unspecializedConstraints.js
index f782c811aa2a8..08546edf98053 100644
--- a/tests/baselines/reference/unspecializedConstraints.js
+++ b/tests/baselines/reference/unspecializedConstraints.js
@@ -167,7 +167,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js b/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js
index 94adf1b1d714b..c7a52951fe4fe 100644
--- a/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js
+++ b/tests/baselines/reference/untypedFunctionCallsWithTypeParameters1.js
@@ -57,7 +57,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unusedClassesinNamespace4.js b/tests/baselines/reference/unusedClassesinNamespace4.js
index 18a49cd8370e2..a2c3aefdc8f0f 100644
--- a/tests/baselines/reference/unusedClassesinNamespace4.js
+++ b/tests/baselines/reference/unusedClassesinNamespace4.js
@@ -27,7 +27,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unusedIdentifiersConsolidated1.js b/tests/baselines/reference/unusedIdentifiersConsolidated1.js
index 3fc4b33b307ab..06f34f7e02f62 100644
--- a/tests/baselines/reference/unusedIdentifiersConsolidated1.js
+++ b/tests/baselines/reference/unusedIdentifiersConsolidated1.js
@@ -115,7 +115,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/unusedInvalidTypeArguments.js b/tests/baselines/reference/unusedInvalidTypeArguments.js
index 603e8f180bf40..4ebf1331eb424 100644
--- a/tests/baselines/reference/unusedInvalidTypeArguments.js
+++ b/tests/baselines/reference/unusedInvalidTypeArguments.js
@@ -60,7 +60,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
@@ -109,7 +120,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/useBeforeDeclaration_superClass.js b/tests/baselines/reference/useBeforeDeclaration_superClass.js
index d0f902dbed4d5..8c733883472d0 100644
--- a/tests/baselines/reference/useBeforeDeclaration_superClass.js
+++ b/tests/baselines/reference/useBeforeDeclaration_superClass.js
@@ -42,7 +42,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/usingDeclarations.1(target=es5).js b/tests/baselines/reference/usingDeclarations.1(target=es5).js
index d9a8c2e561e93..a70e52e34b211 100644
--- a/tests/baselines/reference/usingDeclarations.1(target=es5).js
+++ b/tests/baselines/reference/usingDeclarations.1(target=es5).js
@@ -165,7 +165,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/usingDeclarations.11.js b/tests/baselines/reference/usingDeclarations.11.js
index 19959e6d995e1..f2d3a0dd07359 100644
--- a/tests/baselines/reference/usingDeclarations.11.js
+++ b/tests/baselines/reference/usingDeclarations.11.js
@@ -48,7 +48,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/validUseOfThisInSuper.js b/tests/baselines/reference/validUseOfThisInSuper.js
index b6b559993d3af..0d1bde7e25182 100644
--- a/tests/baselines/reference/validUseOfThisInSuper.js
+++ b/tests/baselines/reference/validUseOfThisInSuper.js
@@ -23,7 +23,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/varArgsOnConstructorTypes.js b/tests/baselines/reference/varArgsOnConstructorTypes.js
index 6654859f5a0d8..8f71fdc947225 100644
--- a/tests/baselines/reference/varArgsOnConstructorTypes.js
+++ b/tests/baselines/reference/varArgsOnConstructorTypes.js
@@ -38,7 +38,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js
index b69e827567969..7996409f7d5da 100644
--- a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js
+++ b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign.js
@@ -81,7 +81,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
diff --git a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js
index 1c1fa8a2a1307..efc77c2e4288b 100644
--- a/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js
+++ b/tests/baselines/reference/varianceProblingAndZeroOrderIndexSignatureRelationsAlign2.js
@@ -81,7 +81,18 @@ var __extends = (this && this.__extends) || (function () {
if (typeof b !== "function" && b !== null)
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
extendStatics(d, b);
- function __() { this.constructor = d; }
+ function __() {
+ if (Object.defineProperty) {
+ Object.defineProperty(this, "constructor", {
+ value: d,
+ writable: true,
+ enumerable: false,
+ configurable: true
+ });
+ } else {
+ this.constructor = d;
+ }
+ }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();