\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff
index 90b41568bf..5522403dbc 100644
--- a/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/transformNestedGeneratorsWithTry.js.diff
@@ -15,7 +15,7 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
// https://github.com/Microsoft/TypeScript/issues/11177
--var Bluebird = __importStar(require("bluebird"));
+ const Bluebird = __importStar(require("bluebird"));
-function a() {
- return __awaiter(this, void 0, void 0, function* () {
- try {
@@ -31,7 +31,6 @@
- }
- catch (error) { }
- });
-+const Bluebird = __importStar(require("bluebird"));
+async function a() {
+ try {
+ const b = async function b() {
diff --git a/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck.js b/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck.js
index 457cca76ea..d7c8361a42 100644
--- a/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck.js
+++ b/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck.js
@@ -17,22 +17,11 @@ export interface WizardStepProps {
//// [trivialSubtypeReductionNoStructuralCheck.js]
"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wizard = void 0;
class Wizard {
get steps() {
- return __assign({ wizard: this }, props);
+ return Object.assign({ wizard: this }, props);
}
}
exports.Wizard = Wizard;
diff --git a/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck2.js b/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck2.js
index 39a5951efb..5faef299d2 100644
--- a/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck2.js
+++ b/testdata/baselines/reference/submodule/compiler/trivialSubtypeReductionNoStructuralCheck2.js
@@ -17,22 +17,11 @@ export interface WizardStepProps {
//// [trivialSubtypeReductionNoStructuralCheck2.js]
"use strict";
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wizard = void 0;
class Wizard {
get steps() {
- return __assign({ wizard: this }, props);
+ return Object.assign({ wizard: this }, props);
}
}
exports.Wizard = Wizard;
diff --git a/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js.diff b/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js.diff
deleted file mode 100644
index 700383b3b9..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxDeepAttributeAssignabilityError.js.diff
+++ /dev/null
@@ -1,22 +0,0 @@
---- old.tsxDeepAttributeAssignabilityError.js
-+++ new.tsxDeepAttributeAssignabilityError.js
-@@= skipped -61, +61 lines =@@
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.MyComponent = MyComponent;
--var React = __importStar(require("react"));
-+const React = __importStar(require("react"));
- function MyComponent(_props) {
- return React.createElement("span", null, "my component");
- }
-@@= skipped -41, +41 lines =@@
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.result = void 0;
--var React = __importStar(require("react"));
--var my_component_1 = require("./my-component");
-+const React = __importStar(require("react"));
-+const my_component_1 = require("./my-component");
- exports.result = React.createElement(my_component_1.MyComponent, { x: "yes", y: {
- value: 42
- } });
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxDefaultImports.js.diff b/testdata/baselines/reference/submodule/compiler/tsxDefaultImports.js.diff
index 97df8212c1..613bc43f9f 100644
--- a/testdata/baselines/reference/submodule/compiler/tsxDefaultImports.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/tsxDefaultImports.js.diff
@@ -1,25 +1,12 @@
--- old.tsxDefaultImports.js
+++ new.tsxDefaultImports.js
-@@= skipped -19, +19 lines =@@
- (function (SomeEnum) {
+@@= skipped -20, +20 lines =@@
SomeEnum[SomeEnum["one"] = 0] = "one";
})(SomeEnum || (SomeEnum = {}));
--let SomeClass = (() => {
-- class SomeClass {
-- }
-- SomeClass.E = SomeEnum;
-- return SomeClass;
--})();
-+class SomeClass {
+ class SomeClass {
+ static E = SomeEnum;
-+}
+ }
+-SomeClass.E = SomeEnum;
exports.default = SomeClass;
//// [b.js]
- "use strict";
-@@= skipped -13, +10 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var a_1 = __importDefault(require("./a"));
-+const a_1 = __importDefault(require("./a"));
- let a = a_1.default.E.one;
\ No newline at end of file
+ "use strict";
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxFragmentChildrenCheck.js.diff b/testdata/baselines/reference/submodule/compiler/tsxFragmentChildrenCheck.js.diff
deleted file mode 100644
index 3b18de52ae..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxFragmentChildrenCheck.js.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- old.tsxFragmentChildrenCheck.js
-+++ new.tsxFragmentChildrenCheck.js
-@@= skipped -70, +70 lines =@@
- };
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = __importStar(require("react"));
--var my_component_1 = require("./my-component");
-+const React = __importStar(require("react"));
-+const my_component_1 = require("./my-component");
- const MY_STRING = 'Ceci n\'est pas une string.';
- const MY_CLASSNAME = 'jeclass';
- class RenderString extends React.PureComponent {
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxInvokeComponentType.js.diff b/testdata/baselines/reference/submodule/compiler/tsxInvokeComponentType.js.diff
deleted file mode 100644
index 32ac7edd9f..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxInvokeComponentType.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.tsxInvokeComponentType.js
-+++ new.tsxInvokeComponentType.js
-@@= skipped -20, +20 lines =@@
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- ///
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- const bad = react_1.default.createElement(Elem, null);
- const good = react_1.default.createElement(Elem, { someKey: "ok" });
- const alsoOk = react_1.default.createElement(Elem2, null, "text");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff b/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff
deleted file mode 100644
index e3c4cc6c5a..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxNoTypeAnnotatedSFC.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.tsxNoTypeAnnotatedSFC.js
-+++ new.tsxNoTypeAnnotatedSFC.js
-@@= skipped -46, +46 lines =@@
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- // not _actually_ making react available in this test to regression test #22948
--var React = __importStar(require("react"));
-+const React = __importStar(require("react"));
- const Test123 = () => ;
- function testComponent(props) {
- return ;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js
index 86f61ddfe3..3c95421f45 100644
--- a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js
+++ b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js
@@ -24,17 +24,6 @@ function test(wrappedProps: P) {
//// [tsxNotUsingApparentTypeOfSFC.js]
"use strict";
///
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
@@ -51,6 +40,6 @@ function test(wrappedProps) {
}
let x = react_1.default.createElement(MySFC, null); // should error
let y = react_1.default.createElement(MyComponent, null); // should error
- let z = react_1.default.createElement(MySFC, __assign({}, wrappedProps)); // should work
- let q = react_1.default.createElement(MyComponent, __assign({}, wrappedProps)); // should work
+ let z = react_1.default.createElement(MySFC, Object.assign({}, wrappedProps)); // should work
+ let q = react_1.default.createElement(MyComponent, Object.assign({}, wrappedProps)); // should work
}
diff --git a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff b/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff
deleted file mode 100644
index 46768e7061..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxNotUsingApparentTypeOfSFC.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.tsxNotUsingApparentTypeOfSFC.js
-+++ new.tsxNotUsingApparentTypeOfSFC.js
-@@= skipped -38, +38 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- function test(wrappedProps) {
- let MySFC = function (props) {
- return react_1.default.createElement(react_1.default.Fragment, null, "hello");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js b/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js
index 238668914a..e075d2dce2 100644
--- a/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js
+++ b/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js
@@ -21,20 +21,9 @@ const CustomButton: React.SFC = props =>
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
-const CustomButton = props => react_1.default.createElement(Button, __assign({}, props));
+const CustomButton = props => react_1.default.createElement(Button, Object.assign({}, props));
diff --git a/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js.diff b/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js.diff
deleted file mode 100644
index 21a2dfd386..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxReactPropsInferenceSucceedsOnIntersections.js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.tsxReactPropsInferenceSucceedsOnIntersections.js
-+++ new.tsxReactPropsInferenceSucceedsOnIntersections.js
-@@= skipped -35, +35 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- const CustomButton = props => react_1.default.createElement(Button, __assign({}, props));
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js b/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js
index 7f7e219d8c..c6fa46feb8 100644
--- a/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js
+++ b/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js
@@ -15,17 +15,6 @@ class MyComponent extends React.Component<{dataSource: number[], onClick?: any},
//// [tsxSpreadDoesNotReportExcessProps.js]
"use strict";
///
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
@@ -33,6 +22,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
class MyComponent extends react_1.default.Component {
render() {
- return (react_1.default.createElement("div", __assign({}, this.props, { className: "ok" })));
+ return (react_1.default.createElement("div", Object.assign({}, this.props, { className: "ok" })));
}
}
diff --git a/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js.diff b/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js.diff
deleted file mode 100644
index b3ceb982de..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxSpreadDoesNotReportExcessProps.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.tsxSpreadDoesNotReportExcessProps.js
-+++ new.tsxSpreadDoesNotReportExcessProps.js
-@@= skipped -29, +29 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- class MyComponent extends react_1.default.Component {
- render() {
- return (react_1.default.createElement("div", __assign({}, this.props, { className: "ok" })));
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxStatelessComponentDefaultProps.js.diff b/testdata/baselines/reference/submodule/compiler/tsxStatelessComponentDefaultProps.js.diff
deleted file mode 100644
index 6f9b23d252..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxStatelessComponentDefaultProps.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.tsxStatelessComponentDefaultProps.js
-+++ new.tsxStatelessComponentDefaultProps.js
-@@= skipped -23, +23 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- function BackButton(_props) {
- return react_1.default.createElement("div", null);
- }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/tsxUnionMemberChecksFilterDataProps.js.diff b/testdata/baselines/reference/submodule/compiler/tsxUnionMemberChecksFilterDataProps.js.diff
deleted file mode 100644
index 545c19cf4e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/tsxUnionMemberChecksFilterDataProps.js.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- old.tsxUnionMemberChecksFilterDataProps.js
-+++ new.tsxUnionMemberChecksFilterDataProps.js
-@@= skipped -17, +17 lines =@@
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- ///
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- const RootNotHappy = () => (react_1.default.createElement(NotHappy, { "data-testid": "my-test-id" }));
- const RootHappy = () => (react_1.default.createElement(Happy, { "data-testid": "my-test-id" }));
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.js.diff b/testdata/baselines/reference/submodule/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.js.diff
deleted file mode 100644
index 9f2a0d06c1..0000000000
--- a/testdata/baselines/reference/submodule/compiler/typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.js.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- old.typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.js
-+++ new.typeCheckObjectCreationExpressionWithUndefinedCallResolutionData.js
-@@= skipped -21, +21 lines =@@
- //// [file2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var f = require("./file1");
-+const f = require("./file1");
- f.foo();
-
diff --git a/testdata/baselines/reference/submodule/compiler/typeOfPrototype.js.diff b/testdata/baselines/reference/submodule/compiler/typeOfPrototype.js.diff
index 564b067903..e75c86cba3 100644
--- a/testdata/baselines/reference/submodule/compiler/typeOfPrototype.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/typeOfPrototype.js.diff
@@ -1,20 +1,14 @@
--- old.typeOfPrototype.js
+++ new.typeOfPrototype.js
-@@= skipped -8, +8 lines =@@
-
+@@= skipped -9, +9 lines =@@
//// [typeOfPrototype.js]
--let Foo = (() => {
-- class Foo {
-- constructor() {
-- this.bar = 3;
-- }
+ class Foo {
+- constructor() {
+- this.bar = 3;
- }
-- Foo.bar = '';
-- return Foo;
--})();
-+class Foo {
+ bar = 3;
+ static bar = '';
-+}
+ }
+-Foo.bar = '';
Foo.prototype.bar = undefined; // Should be OK
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.js.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.js.diff
deleted file mode 100644
index 3b08652ba3..0000000000
--- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives8.js.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- old.typeReferenceDirectives8.js
-+++ new.typeReferenceDirectives8.js
-@@= skipped -18, +18 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.bar = void 0;
--var mod1_1 = require("./mod1");
-+const mod1_1 = require("./mod1");
- exports.bar = (0, mod1_1.foo)();
-
diff --git a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.js.diff b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.js.diff
index c1ee095aab..d809ae9f21 100644
--- a/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/typeReferenceDirectives9.js.diff
@@ -7,19 +7,4 @@
+ x;
}
exports.Cls = Cls;
- //// [mod1.js]
- "use strict";
- ///
- Object.defineProperty(exports, "__esModule", { value: true });
--var main_1 = require("./main");
-+const main_1 = require("./main");
- main_1.Cls.prototype.foo = function () { return undefined; };
- //// [mod2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.bar = exports.foo = exports.cls = void 0;
--var main_1 = require("./main");
-+const main_1 = require("./main");
- require("./mod1");
- exports.cls = main_1.Cls;
- exports.foo = new main_1.Cls().foo();
\ No newline at end of file
+ //// [mod1.js]
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.js.diff b/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.js.diff
deleted file mode 100644
index 0fb2cc895e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/typeRootsFromMultipleNodeModulesDirectories.js.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- old.typeRootsFromMultipleNodeModulesDirectories.js
-+++ new.typeRootsFromMultipleNodeModulesDirectories.js
-@@= skipped -24, +24 lines =@@
- //// [a.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var xyz_1 = require("xyz");
--var pdq_1 = require("pdq");
--var abc_1 = require("abc");
-+const xyz_1 = require("xyz");
-+const pdq_1 = require("pdq");
-+const abc_1 = require("abc");
- xyz_1.x + pdq_1.y + abc_1.z;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.js.diff b/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.js.diff
deleted file mode 100644
index 97d925222e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/typeRootsFromNodeModulesInParentDirectory.js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.typeRootsFromNodeModulesInParentDirectory.js
-+++ new.typeRootsFromNodeModulesInParentDirectory.js
-@@= skipped -12, +12 lines =@@
- //// [a.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var xyz_1 = require("xyz");
-+const xyz_1 = require("xyz");
- xyz_1.x;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeofAmbientExternalModules.js.diff b/testdata/baselines/reference/submodule/compiler/typeofAmbientExternalModules.js.diff
index 39bfea0027..3cbaa5cc15 100644
--- a/testdata/baselines/reference/submodule/compiler/typeofAmbientExternalModules.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/typeofAmbientExternalModules.js.diff
@@ -13,15 +13,4 @@
+ bar;
}
module.exports = D;
- //// [typeofAmbientExternalModules_2.js]
-@@= skipped -12, +14 lines =@@
- Object.defineProperty(exports, "__esModule", { value: true });
- ///
- ///
--var ext = require("./typeofAmbientExternalModules_0");
--var exp = require("./typeofAmbientExternalModules_1");
-+const ext = require("./typeofAmbientExternalModules_0");
-+const exp = require("./typeofAmbientExternalModules_1");
- var y1 = ext;
- y1 = exp;
- var y2 = exp;
\ No newline at end of file
+ //// [typeofAmbientExternalModules_2.js]
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeofExternalModules.js.diff b/testdata/baselines/reference/submodule/compiler/typeofExternalModules.js.diff
deleted file mode 100644
index 28a52ce19d..0000000000
--- a/testdata/baselines/reference/submodule/compiler/typeofExternalModules.js.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- old.typeofExternalModules.js
-+++ new.typeofExternalModules.js
-@@= skipped -30, +30 lines =@@
- //// [typeofExternalModules_core.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var ext = require("./typeofExternalModules_external");
--var exp = require("./typeofExternalModules_exportAssign");
-+const ext = require("./typeofExternalModules_external");
-+const exp = require("./typeofExternalModules_exportAssign");
- var y1 = ext;
- y1 = exp;
- var y2 = exp;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/typeofUsedBeforeBlockScoped.js.diff b/testdata/baselines/reference/submodule/compiler/typeofUsedBeforeBlockScoped.js.diff
index 43ea3e8ebf..47ad7899b5 100644
--- a/testdata/baselines/reference/submodule/compiler/typeofUsedBeforeBlockScoped.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/typeofUsedBeforeBlockScoped.js.diff
@@ -1,17 +1,11 @@
--- old.typeofUsedBeforeBlockScoped.js
+++ new.typeofUsedBeforeBlockScoped.js
-@@= skipped -10, +10 lines =@@
-
+@@= skipped -11, +11 lines =@@
//// [typeofUsedBeforeBlockScoped.js]
--let C = (() => {
-- class C {
-- }
-- C.s = 2;
-- return C;
--})();
-+class C {
+ class C {
+ static s = 2;
-+}
+ }
+-C.s = 2;
let o2;
let o = { n: 12 };
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff b/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff
deleted file mode 100644
index 9866ffc5f5..0000000000
--- a/testdata/baselines/reference/submodule/compiler/undeclaredModuleError.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.undeclaredModuleError.js
-+++ new.undeclaredModuleError.js
-@@= skipped -19, +19 lines =@@
- //// [undeclaredModuleError.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var fs = require("fs");
-+const fs = require("fs");
- function readdir(path, accept, callback) { }
- function join(...paths) { }
- function instrumentFile(covFileDir, covFileName, originalFilePath) {
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).errors.txt b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).errors.txt
deleted file mode 100644
index 5f2413009e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).errors.txt
+++ /dev/null
@@ -1,134 +0,0 @@
-PrivateIdentifierNameWithEscape1.ts(2,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-PrivateIdentifierNameWithEscape2.ts(2,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-PrivateIdentifierNameWithExtendedEscape1.ts(2,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-PrivateIdentifierNameWithExtendedEscape2.ts(2,5): error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-
-
-==== identifierVariableWithEscape1.ts (0 errors) ====
- export let \u0078 = 10;
- x++;
-
-==== identifierVariableWithEscape2.ts (0 errors) ====
- export let x\u0078 = 10;
- xx++;
-
-==== identifierVariableWithExtendedEscape1.ts (0 errors) ====
- export let \u{78} = 10;
- x++;
-
-==== identifierVariableWithExtendedEscape2.ts (0 errors) ====
- export let x\u{78} = 10;
- xx++;
-
-==== IdentifierNameWithEscape1.ts (0 errors) ====
- export class IdentifierNameWithEscape1 {
- \u0078: number;
-
- constructor() {
- this.\u0078 = 0;
- }
-
- doThing() {
- this.x = 42;
- }
- }
-
-==== IdentifierNameWithEscape2.ts (0 errors) ====
- export class IdentifierNameWithEscape2 {
- x\u0078: number;
-
- constructor() {
- this.x\u0078 = 0;
- }
-
- doThing() {
- this.xx = 42;
- }
- }
-
-==== IdentifierNameWithExtendedEscape1.ts (0 errors) ====
- export class IdentifierNameWithExtendedEscape1 {
- \u{78}: number;
-
- constructor() {
- this.\u{78} = 0;
- }
-
- doThing() {
- this.x = 42;
- }
- }
-
-==== IdentifierNameWithExtendedEscape2.ts (0 errors) ====
- export class IdentifierNameWithExtendedEscape2 {
- x\u{78}: number;
-
- constructor() {
- this.x\u{78} = 0;
- }
-
- doThing() {
- this.xx = 42;
- }
- }
-
-==== PrivateIdentifierNameWithEscape1.ts (1 errors) ====
- export class PrivateIdentifierWithEscape1 {
- #\u0078: number;
- ~~~~~~~
-!!! error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-
- constructor() {
- this.#\u0078 = 0;
- }
-
- doThing() {
- this.#x = 42;
- }
- }
-
-==== PrivateIdentifierNameWithEscape2.ts (1 errors) ====
- export class PrivateIdentifierWithEscape2 {
- #x\u0078: number;
- ~~~~~~~~
-!!! error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-
- constructor() {
- this.#x\u0078 = 0;
- }
-
- doThing() {
- this.#xx = 42;
- }
- }
-
-==== PrivateIdentifierNameWithExtendedEscape1.ts (1 errors) ====
- export class PrivateIdentifierWithExtendedEscape1 {
- #\u{78}: number;
- ~~~~~~~
-!!! error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-
- constructor() {
- this.#\u{78} = 0;
- }
-
- doThing() {
- this.#x = 42;
- }
- }
-
-==== PrivateIdentifierNameWithExtendedEscape2.ts (1 errors) ====
- export class PrivateIdentifierWithExtendedEscape2 {
- #x\u{78}: number;
- ~~~~~~~~
-!!! error TS18028: Private identifiers are only available when targeting ECMAScript 2015 and higher.
-
- constructor() {
- this.#x\u{78} = 0;
- }
-
- doThing() {
- this.#xx = 42;
- }
- }
-
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js b/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js
index de6d4eeafa..7ed3200ce0 100644
--- a/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js
+++ b/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js
@@ -18,15 +18,4 @@ ab = {...a, y: (null as any as string | undefined)}; // Should be allowed, since
//// [unionExcessPropsWithPartialMember.js]
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-ab = __assign(__assign({}, a), { y: null }); // Should be allowed, since `y` is missing on `A`
+ab = Object.assign(Object.assign({}, a), { y: null }); // Should be allowed, since `y` is missing on `A`
diff --git a/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js.diff b/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js.diff
index 651634dcb6..6b30d63783 100644
--- a/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/unionExcessPropsWithPartialMember.js.diff
@@ -5,6 +5,4 @@
//// [unionExcessPropsWithPartialMember.js]
-"use strict";
- var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
\ No newline at end of file
+ ab = Object.assign(Object.assign({}, a), { y: null }); // Should be allowed, since `y` is missing on `A`
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/uniqueSymbolPropertyDeclarationEmit.js.diff b/testdata/baselines/reference/submodule/compiler/uniqueSymbolPropertyDeclarationEmit.js.diff
deleted file mode 100644
index 6db89e813c..0000000000
--- a/testdata/baselines/reference/submodule/compiler/uniqueSymbolPropertyDeclarationEmit.js.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- old.uniqueSymbolPropertyDeclarationEmit.js
-+++ new.uniqueSymbolPropertyDeclarationEmit.js
-@@= skipped -34, +34 lines =@@
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.default = foo;
--var op_1 = __importDefault(require("./op"));
--var po_1 = require("./po");
-+const op_1 = __importDefault(require("./op"));
-+const po_1 = require("./po");
- function foo() {
- return {
- [op_1.default.or]: [],
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unqualifiedCallToClassStatic1.js.diff b/testdata/baselines/reference/submodule/compiler/unqualifiedCallToClassStatic1.js.diff
index c005515853..c5661de0ee 100644
--- a/testdata/baselines/reference/submodule/compiler/unqualifiedCallToClassStatic1.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/unqualifiedCallToClassStatic1.js.diff
@@ -1,18 +1,15 @@
--- old.unqualifiedCallToClassStatic1.js
+++ new.unqualifiedCallToClassStatic1.js
-@@= skipped -8, +8 lines =@@
- }
+@@= skipped -9, +9 lines =@@
//// [unqualifiedCallToClassStatic1.js]
--let Vector = (() => {
-- class Vector {
-- }
-- Vector.foo = () => {
-+class Vector {
+ class Vector {
+ static foo = () => {
- // 'foo' cannot be called in an unqualified manner.
- foo();
- };
-- return Vector;
--})();
-+}
\ No newline at end of file
++ // 'foo' cannot be called in an unqualified manner.
++ foo();
++ };
+ }
+-Vector.foo = () => {
+- // 'foo' cannot be called in an unqualified manner.
+- foo();
+-};
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff
index 976aa932c9..2a4fb1717f 100644
--- a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff
+++ b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=false).js.diff
@@ -8,23 +8,17 @@
function func1() {
aFunc();
console.log(EnumA.Value);
-@@= skipped -42, +41 lines =@@
- function aFunc() {
+@@= skipped -43, +42 lines =@@
console.log(ClassA.Value);
}
-- let ClassA = (() => {
-- class ClassA {
-- }
-- ClassA.Value = 1234;
-- return ClassA;
-- })();
-+ class ClassA {
+ class ClassA {
+ static Value = 1234;
-+ }
+ }
+- ClassA.Value = 1234;
}
function func5() {
aFunc();
-@@= skipped -26, +23 lines =@@
+@@= skipped -22, +22 lines =@@
Bar[Bar["A"] = 0] = "A";
})(Bar || (Bar = {}));
class Foo {
diff --git a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff
index 583fa67a1f..d6787bfb54 100644
--- a/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff
+++ b/testdata/baselines/reference/submodule/compiler/unreachableDeclarations(preserveconstenums=true).js.diff
@@ -8,23 +8,17 @@
function func1() {
aFunc();
console.log(EnumA.Value);
-@@= skipped -50, +49 lines =@@
- function aFunc() {
+@@= skipped -51, +50 lines =@@
console.log(ClassA.Value);
}
-- let ClassA = (() => {
-- class ClassA {
-- }
-- ClassA.Value = 1234;
-- return ClassA;
-- })();
-+ class ClassA {
+ class ClassA {
+ static Value = 1234;
-+ }
+ }
+- ClassA.Value = 1234;
}
function func5() {
aFunc();
-@@= skipped -26, +23 lines =@@
+@@= skipped -22, +22 lines =@@
Bar[Bar["A"] = 0] = "A";
})(Bar || (Bar = {}));
class Foo {
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff
deleted file mode 100644
index a3893c6a99..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports11.js.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.unusedImports11.js
-+++ new.unusedImports11.js
-@@= skipped -60, +60 lines =@@
- };
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
--var b_1 = require("./b");
--var b_2 = __importStar(require("./b"));
--var ns = __importStar(require("./b"));
--var r = require("./b");
-+const b_1 = require("./b");
-+const b_2 = __importStar(require("./b"));
-+const ns = __importStar(require("./b"));
-+const r = require("./b");
- new b_1.Member();
- new b_2.default();
- new b_2.Member();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports13.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports13.js.diff
deleted file mode 100644
index 5fab26c609..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports13.js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.unusedImports13.js
-+++ new.unusedImports13.js
-@@= skipped -23, +23 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.FooComponent = void 0;
--var React = require("react");
-+const React = require("react");
- exports.FooComponent = ;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports14.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports14.js.diff
deleted file mode 100644
index 7d3be5be1c..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports14.js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.unusedImports14.js
-+++ new.unusedImports14.js
-@@= skipped -23, +23 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.FooComponent = void 0;
--var React = require("react");
-+const React = require("react");
- exports.FooComponent = React.createElement("div", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports15.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports15.js.diff
deleted file mode 100644
index f93e487574..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports15.js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.unusedImports15.js
-+++ new.unusedImports15.js
-@@= skipped -23, +23 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.FooComponent = void 0;
--var Element = require("react");
-+const Element = require("react");
- exports.FooComponent = ;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports16.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports16.js.diff
deleted file mode 100644
index 4a98ffea62..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports16.js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.unusedImports16.js
-+++ new.unusedImports16.js
-@@= skipped -23, +23 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.FooComponent = void 0;
--var Element = require("react");
-+const Element = require("react");
- exports.FooComponent = Element.createElement("div", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports2.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports2.js.diff
deleted file mode 100644
index 0a3ecb9f2e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports2.js.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- old.unusedImports2.js
-+++ new.unusedImports2.js
-@@= skipped -29, +29 lines =@@
- //// [file2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var file1_1 = require("./file1");
-+const file1_1 = require("./file1");
- var x = new file1_1.Calculator();
- x.handleChar();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports3.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports3.js.diff
deleted file mode 100644
index cbb601341c..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports3.js.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- old.unusedImports3.js
-+++ new.unusedImports3.js
-@@= skipped -35, +35 lines =@@
- //// [file2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var file1_1 = require("./file1");
-+const file1_1 = require("./file1");
- (0, file1_1.test)();
- (0, file1_1.test2)();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports4.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports4.js.diff
deleted file mode 100644
index eab1ce720e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports4.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.unusedImports4.js
-+++ new.unusedImports4.js
-@@= skipped -36, +36 lines =@@
- //// [file2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var file1_1 = require("./file1");
-+const file1_1 = require("./file1");
- var x = new file1_1.Calculator();
- x.handleChar();
- (0, file1_1.test2)();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports5.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports5.js.diff
deleted file mode 100644
index 96fd125060..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports5.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.unusedImports5.js
-+++ new.unusedImports5.js
-@@= skipped -36, +36 lines =@@
- //// [file2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var file1_1 = require("./file1");
-+const file1_1 = require("./file1");
- var x = new file1_1.Calculator();
- x.handleChar();
- (0, file1_1.test)();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports8.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports8.js.diff
deleted file mode 100644
index d782fee28c..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports8.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.unusedImports8.js
-+++ new.unusedImports8.js
-@@= skipped -36, +36 lines =@@
- //// [file2.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var file1_1 = require("./file1");
-+const file1_1 = require("./file1");
- var x = new file1_1.Calculator();
- x.handleChar();
- (0, file1_1.test)();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff b/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff
deleted file mode 100644
index 5cba8c13b0..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedImports_entireImportDeclaration.js.diff
+++ /dev/null
@@ -1,15 +0,0 @@
---- old.unusedImports_entireImportDeclaration.js
-+++ new.unusedImports_entireImportDeclaration.js
-@@= skipped -62, +62 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var a_1 = __importDefault(require("./a"));
-+const a_1 = __importDefault(require("./a"));
- a_1.default;
--var a_2 = __importDefault(require("./a"));
-+const a_2 = __importDefault(require("./a"));
- a_2.default;
--var ns3 = __importStar(require("./a"));
-+const ns3 = __importStar(require("./a"));
- ns3;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unusedInvalidTypeArguments.js.diff b/testdata/baselines/reference/submodule/compiler/unusedInvalidTypeArguments.js.diff
deleted file mode 100644
index 0399feefbc..0000000000
--- a/testdata/baselines/reference/submodule/compiler/unusedInvalidTypeArguments.js.diff
+++ /dev/null
@@ -1,26 +0,0 @@
---- old.unusedInvalidTypeArguments.js
-+++ new.unusedInvalidTypeArguments.js
-@@= skipped -62, +62 lines =@@
- //// [call.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var unknown_1 = require("unknown");
-+const unknown_1 = require("unknown");
- (0, unknown_1.foo)();
- //// [new.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var unkown_1 = require("unkown");
-+const unkown_1 = require("unkown");
- new unkown_1.Foo();
- //// [callAny.js]
- g();
-@@= skipped -14, +14 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.C = void 0;
--var unknown_1 = require("unknown");
-+const unknown_1 = require("unknown");
- class C extends unknown_1.A {
- m() {
- super.m(1);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/voidAsNonAmbiguousReturnType.js.diff b/testdata/baselines/reference/submodule/compiler/voidAsNonAmbiguousReturnType.js.diff
deleted file mode 100644
index 39802be4e4..0000000000
--- a/testdata/baselines/reference/submodule/compiler/voidAsNonAmbiguousReturnType.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.voidAsNonAmbiguousReturnType.js
-+++ new.voidAsNonAmbiguousReturnType.js
-@@= skipped -21, +21 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- ///
--var fs = require("./voidAsNonAmbiguousReturnType_0");
-+const fs = require("./voidAsNonAmbiguousReturnType_0");
- function main() {
- fs.mkdirSync('test'); // should not error - return types are the same
- }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js.diff b/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js.diff
index aee086c996..d48c87f926 100644
--- a/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js.diff
@@ -1,50 +1,33 @@
--- old.ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js
+++ new.ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js
-@@= skipped -24, +24 lines =@@
- }
+@@= skipped -25, +25 lines =@@
//// [ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.js]
--let Point = (() => {
-- class Point {
-- constructor(x, y) {
-- this.x = x;
-- this.y = y;
-- }
-+class Point {
+ class Point {
+ x;
+ y;
-+ constructor(x, y) {
-+ this.x = x;
-+ this.y = y;
+ constructor(x, y) {
+ this.x = x;
+ this.y = y;
}
-- Point.Origin = { x: 0, y: 0 };
-- return Point;
--})();
+ static Origin = { x: 0, y: 0 };
-+}
+ }
+-Point.Origin = { x: 0, y: 0 };
(function (Point) {
Point.Origin = ""; //expected duplicate identifier error
})(Point || (Point = {}));
var A;
(function (A) {
-- let Point = (() => {
-- class Point {
-- constructor(x, y) {
-- this.x = x;
-- this.y = y;
-- }
-+ class Point {
+ class Point {
+ x;
+ y;
-+ constructor(x, y) {
-+ this.x = x;
-+ this.y = y;
+ constructor(x, y) {
+ this.x = x;
+ this.y = y;
}
-- Point.Origin = { x: 0, y: 0 };
-- return Point;
-- })();
+ static Origin = { x: 0, y: 0 };
-+ }
+ }
+- Point.Origin = { x: 0, y: 0 };
A.Point = Point;
(function (Point) {
Point.Origin = ""; //expected duplicate identifier error
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js.diff b/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js.diff
index a9e2f82d90..4528b48ca8 100644
--- a/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js.diff
@@ -1,50 +1,33 @@
--- old.ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js
+++ new.ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js
-@@= skipped -24, +24 lines =@@
- }
+@@= skipped -25, +25 lines =@@
//// [ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.js]
--let Point = (() => {
-- class Point {
-- constructor(x, y) {
-- this.x = x;
-- this.y = y;
-- }
-+class Point {
+ class Point {
+ x;
+ y;
-+ constructor(x, y) {
-+ this.x = x;
-+ this.y = y;
+ constructor(x, y) {
+ this.x = x;
+ this.y = y;
}
-- Point.Origin = { x: 0, y: 0 };
-- return Point;
--})();
+ static Origin = { x: 0, y: 0 };
-+}
+ }
+-Point.Origin = { x: 0, y: 0 };
(function (Point) {
var Origin = ""; // not an error, since not exported
})(Point || (Point = {}));
var A;
(function (A) {
-- let Point = (() => {
-- class Point {
-- constructor(x, y) {
-- this.x = x;
-- this.y = y;
-- }
-+ class Point {
+ class Point {
+ x;
+ y;
-+ constructor(x, y) {
-+ this.x = x;
-+ this.y = y;
+ constructor(x, y) {
+ this.x = x;
+ this.y = y;
}
-- Point.Origin = { x: 0, y: 0 };
-- return Point;
-- })();
+ static Origin = { x: 0, y: 0 };
-+ }
+ }
+- Point.Origin = { x: 0, y: 0 };
A.Point = Point;
(function (Point) {
var Origin = ""; // not an error since not exported
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsExternal.js.diff b/testdata/baselines/reference/submodule/conformance/ambientDeclarationsExternal.js.diff
deleted file mode 100644
index 98694882c1..0000000000
--- a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsExternal.js.diff
+++ /dev/null
@@ -1,10 +0,0 @@
---- old.ambientDeclarationsExternal.js
-+++ new.ambientDeclarationsExternal.js
-@@= skipped -28, +28 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- // Ambient external module members are always exported with or without export keyword when module lacks export assignment
--var imp3 = require("equ2");
-+const imp3 = require("equ2");
- var n = imp3.x;
- var n;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff b/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff
deleted file mode 100644
index 1827386202..0000000000
--- a/testdata/baselines/reference/submodule/conformance/ambientDeclarationsPatterns.js.diff
+++ /dev/null
@@ -1,16 +0,0 @@
---- old.ambientDeclarationsPatterns.js
-+++ new.ambientDeclarationsPatterns.js
-@@= skipped -38, +38 lines =@@
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- ///
--var foobarbaz_1 = require("foobarbaz");
-+const foobarbaz_1 = require("foobarbaz");
- (0, foobarbaz_1.foo)(foobarbaz_1.baz);
--var foosball_1 = require("foosball");
-+const foosball_1 = require("foosball");
- (0, foobarbaz_1.foo)(foosball_1.foos);
- // Works with relative file name
--var file_text_1 = __importDefault(require("./file!text"));
-+const file_text_1 = __importDefault(require("./file!text"));
- (0, foobarbaz_1.foo)(file_text_1.default);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff b/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff
deleted file mode 100644
index 341c70f947..0000000000
--- a/testdata/baselines/reference/submodule/conformance/ambientShorthand.js.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- old.ambientShorthand.js
-+++ new.ambientShorthand.js
-@@= skipped -49, +49 lines =@@
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- ///
--var jquery_1 = __importStar(require("jquery"));
--var baz = __importStar(require("fs"));
--var boom = require("jquery");
-+const jquery_1 = __importStar(require("jquery"));
-+const baz = __importStar(require("fs"));
-+const boom = require("jquery");
- (0, jquery_1.default)(jquery_1.bar, baz, boom);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff b/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff
index efd4bf49fc..539453e808 100644
--- a/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/ambientShorthand_reExport.js.diff
@@ -8,14 +8,4 @@
+const jquery_1 = require("jquery");
Object.defineProperty(exports, "x", { enumerable: true, get: function () { return jquery_1.x; } });
//// [reExportAll.js]
- "use strict";
-@@= skipped -56, +56 lines =@@
- };
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
--var reExportX_1 = require("./reExportX");
--var $ = __importStar(require("./reExportAll"));
-+const reExportX_1 = require("./reExportX");
-+const $ = __importStar(require("./reExportAll"));
- // '$' is not callable, it is an object.
- (0, reExportX_1.x)($);
\ No newline at end of file
+ "use strict";
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/arraySpreadImportHelpers.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/arraySpreadImportHelpers.errors.txt.diff
deleted file mode 100644
index f00c3a6221..0000000000
--- a/testdata/baselines/reference/submodule/conformance/arraySpreadImportHelpers.errors.txt.diff
+++ /dev/null
@@ -1,20 +0,0 @@
---- old.arraySpreadImportHelpers.errors.txt
-+++ new.arraySpreadImportHelpers.errors.txt
-@@= skipped -0, +0 lines =@@
--main.ts(3,15): error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
--
--
--==== main.ts (1 errors) ====
-- export {};
-- const k = [1, , 2];
-- const o = [3, ...k, 4];
-- ~~~~
--!!! error TS2807: This syntax requires an imported helper named '__spreadArray' with 3 parameters, which is not compatible with the one in 'tslib'. Consider upgrading your version of 'tslib'.
--
--==== tslib.d.ts (0 errors) ====
-- // this is a pre-TS4.4 versions of emit helper, which always forced array packing
-- declare module "tslib" {
-- function __spreadArray(to: any[], from: any[]): any[];
-- }
--
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asOperator4.js.diff b/testdata/baselines/reference/submodule/conformance/asOperator4.js.diff
deleted file mode 100644
index 4252865209..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asOperator4.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.asOperator4.js
-+++ new.asOperator4.js
-@@= skipped -18, +18 lines =@@
- //// [bar.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var foo_1 = require("./foo");
-+const foo_1 = require("./foo");
- // These should emit identically
- foo_1.foo;
- foo_1.foo;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/assignmentToVoidZero2.js.diff b/testdata/baselines/reference/submodule/conformance/assignmentToVoidZero2.js.diff
index a08ceb9494..2ebdbe2475 100644
--- a/testdata/baselines/reference/submodule/conformance/assignmentToVoidZero2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/assignmentToVoidZero2.js.diff
@@ -12,13 +12,7 @@
exports.k = void 0;
var o = {};
o.x = 1;
-@@= skipped -15, +19 lines =@@
- //// [importer.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var assignmentToVoidZero2_1 = require("./assignmentToVoidZero2");
-+const assignmentToVoidZero2_1 = require("./assignmentToVoidZero2");
- assignmentToVoidZero2_1.j + assignmentToVoidZero2_1.k;
+@@= skipped -20, +24 lines =@@
//// [assignmentToVoidZero2.d.ts]
diff --git a/testdata/baselines/reference/submodule/conformance/asyncAliasReturnType_es5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncAliasReturnType_es5.errors.txt.diff
deleted file mode 100644
index 9c5b0e18e7..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asyncAliasReturnType_es5.errors.txt.diff
+++ /dev/null
@@ -1,14 +0,0 @@
---- old.asyncAliasReturnType_es5.errors.txt
-+++ new.asyncAliasReturnType_es5.errors.txt
-@@= skipped -0, +0 lines =@@
--asyncAliasReturnType_es5.ts(3,21): error TS1055: Type 'PromiseAlias' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
--
--
--==== asyncAliasReturnType_es5.ts (1 errors) ====
-- type PromiseAlias = Promise;
--
-- async function f(): PromiseAlias {
-- ~~~~~~~~~~~~~~~~~~
--!!! error TS1055: Type 'PromiseAlias' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-- }
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncArrowFunctionCapturesArguments_es5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncArrowFunctionCapturesArguments_es5.errors.txt.diff
deleted file mode 100644
index d7cf20446b..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asyncArrowFunctionCapturesArguments_es5.errors.txt.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.asyncArrowFunctionCapturesArguments_es5.errors.txt
-+++ new.asyncArrowFunctionCapturesArguments_es5.errors.txt
-@@= skipped -0, +0 lines =@@
--asyncArrowFunctionCapturesArguments_es5.ts(4,52): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--
--
--==== asyncArrowFunctionCapturesArguments_es5.ts (1 errors) ====
-- class C {
-- method() {
-- function other() {}
-- var fn = async () => await other.apply(this, arguments);
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- }
-- }
--
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es5.js.diff
index 1b5c759ddb..f4a6bf87d9 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncAwaitIsolatedModules_es5.js.diff
@@ -14,7 +14,6 @@
- });
-};
Object.defineProperty(exports, "__esModule", { value: true });
--var missing_1 = require("missing");
-function f0() {
- return __awaiter(this, void 0, void 0, function* () { });
-}
@@ -22,7 +21,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
-}
-function f3() {
-- return __awaiter(this, void 0, missing_1.MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
-}
-let f4 = function () {
- return __awaiter(this, void 0, void 0, function* () { });
@@ -31,15 +30,15 @@
- return __awaiter(this, void 0, void 0, function* () { });
-};
-let f6 = function () {
-- return __awaiter(this, void 0, missing_1.MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
-};
-let f7 = () => __awaiter(void 0, void 0, void 0, function* () { });
-let f8 = () => __awaiter(void 0, void 0, void 0, function* () { });
--let f9 = () => __awaiter(void 0, void 0, missing_1.MyPromise, function* () { });
+-let f9 = () => __awaiter(void 0, void 0, void 0, function* () { });
-let f10 = () => __awaiter(void 0, void 0, void 0, function* () { return p; });
-let f11 = () => __awaiter(void 0, void 0, void 0, function* () { return mp; });
-let f12 = () => __awaiter(void 0, void 0, void 0, function* () { return mp; });
--let f13 = () => __awaiter(void 0, void 0, missing_1.MyPromise, function* () { return p; });
+-let f13 = () => __awaiter(void 0, void 0, void 0, function* () { return p; });
+async function f0() { }
+async function f1() { }
+async function f3() { }
@@ -61,7 +60,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
- },
- m3() {
-- return __awaiter(this, void 0, missing_1.MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
- }
+ async m1() { },
+ async m2() { },
@@ -75,7 +74,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
- }
- m3() {
-- return __awaiter(this, void 0, missing_1.MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
- }
- static m4() {
- return __awaiter(this, void 0, void 0, function* () { });
@@ -84,7 +83,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
- }
- static m6() {
-- return __awaiter(this, void 0, missing_1.MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
- }
+ async m1() { }
+ async m2() { }
diff --git a/testdata/baselines/reference/submodule/conformance/asyncAwaitNestedClasses_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncAwaitNestedClasses_es5.js.diff
index 59855f65e6..8deb7f06a0 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncAwaitNestedClasses_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncAwaitNestedClasses_es5.js.diff
@@ -1,33 +1,27 @@
--- old.asyncAwaitNestedClasses_es5.js
+++ new.asyncAwaitNestedClasses_es5.js
-@@= skipped -18, +18 lines =@@
+@@= skipped -17, +17 lines =@@
+ A.B.C.func();
//// [asyncAwaitNestedClasses_es5.js]
+-var _a;
// https://github.com/Microsoft/TypeScript/issues/20744
--let A = (() => {
-- var _a;
-- class A {
-- }
-- A.B = (_a = class B {
-- static func2() {
-- return new Promise((resolve) => { resolve(null); });
-- }
-- },
-- _a.C = class C {
-- static func() {
-- return __awaiter(this, void 0, void 0, function* () {
-- yield _a.func2();
-- });
-- }
-- },
-- _a);
-- return A;
--})();
-+class A {
+ class A {
+-}
+-A.B = (_a = class B {
+ static B = class B {
-+ static func2() {
-+ return new Promise((resolve) => { resolve(null); });
-+ }
+ static func2() {
+ return new Promise((resolve) => { resolve(null); });
+ }
+- },
+- _a.C = class C {
+- static func() {
+- return __awaiter(this, void 0, void 0, function* () {
+- yield _a.func2();
+- });
+- }
+- },
+- _a);
+ static C = class C {
+ static async func() {
+ await B.func2();
diff --git a/testdata/baselines/reference/submodule/conformance/asyncAwait_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncAwait_es5.js.diff
index ff51f48a08..6ff4fb1528 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncAwait_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncAwait_es5.js.diff
@@ -20,7 +20,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
-}
-function f3() {
-- return __awaiter(this, void 0, MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
-}
-let f4 = function () {
- return __awaiter(this, void 0, void 0, function* () { });
@@ -29,15 +29,15 @@
- return __awaiter(this, void 0, void 0, function* () { });
-};
-let f6 = function () {
-- return __awaiter(this, void 0, MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
-};
-let f7 = () => __awaiter(this, void 0, void 0, function* () { });
-let f8 = () => __awaiter(this, void 0, void 0, function* () { });
--let f9 = () => __awaiter(this, void 0, MyPromise, function* () { });
+-let f9 = () => __awaiter(this, void 0, void 0, function* () { });
-let f10 = () => __awaiter(this, void 0, void 0, function* () { return p; });
-let f11 = () => __awaiter(this, void 0, void 0, function* () { return mp; });
-let f12 = () => __awaiter(this, void 0, void 0, function* () { return mp; });
--let f13 = () => __awaiter(this, void 0, MyPromise, function* () { return p; });
+-let f13 = () => __awaiter(this, void 0, void 0, function* () { return p; });
+async function f0() { }
+async function f1() { }
+async function f3() { }
@@ -59,7 +59,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
- },
- m3() {
-- return __awaiter(this, void 0, MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
- }
+ async m1() { },
+ async m2() { },
@@ -73,7 +73,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
- }
- m3() {
-- return __awaiter(this, void 0, MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
- }
- static m4() {
- return __awaiter(this, void 0, void 0, function* () { });
@@ -82,7 +82,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
- }
- static m6() {
-- return __awaiter(this, void 0, MyPromise, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
- }
+ async m1() { }
+ async m2() { }
diff --git a/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.errors.txt.diff
deleted file mode 100644
index 6fec0a88c5..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.errors.txt.diff
+++ /dev/null
@@ -1,53 +0,0 @@
---- old.asyncFunctionDeclaration15_es5.errors.txt
-+++ new.asyncFunctionDeclaration15_es5.errors.txt
-@@= skipped -0, +0 lines =@@
--asyncFunctionDeclaration15_es5.ts(6,23): error TS1055: Type '{}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-+asyncFunctionDeclaration15_es5.ts(6,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{}>'?
- asyncFunctionDeclaration15_es5.ts(6,23): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
--asyncFunctionDeclaration15_es5.ts(7,23): error TS1055: Type 'any' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
--asyncFunctionDeclaration15_es5.ts(8,23): error TS1055: Type 'number' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-+asyncFunctionDeclaration15_es5.ts(7,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
-+asyncFunctionDeclaration15_es5.ts(8,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
- asyncFunctionDeclaration15_es5.ts(8,23): error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
--asyncFunctionDeclaration15_es5.ts(9,23): error TS1055: Type 'PromiseLike' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
--asyncFunctionDeclaration15_es5.ts(10,23): error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-- Construct signature return types 'Thenable' and 'PromiseLike' are incompatible.
-- The types returned by 'then(...)' are incompatible between these types.
-- Type 'void' is not assignable to type 'PromiseLike'.
-+asyncFunctionDeclaration15_es5.ts(9,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
-+asyncFunctionDeclaration15_es5.ts(10,23): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
- asyncFunctionDeclaration15_es5.ts(17,16): error TS1058: The return type of an async function must either be a valid promise or must not contain a callable 'then' member.
- asyncFunctionDeclaration15_es5.ts(23,25): error TS1320: Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.
-
-@@= skipped -19, +16 lines =@@
- async function fn1() { } // valid: Promise
- async function fn2(): { } { } // error
- ~~~
--!!! error TS1055: Type '{}' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{}>'?
- ~~~
- !!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
- async function fn3(): any { } // error
- ~~~
--!!! error TS1055: Type 'any' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
- async function fn4(): number { } // error
- ~~~~~~
--!!! error TS1055: Type 'number' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
- ~~~~~~
- !!! error TS2355: A function whose declared type is neither 'undefined', 'void', nor 'any' must return a value.
- async function fn5(): PromiseLike { } // error
- ~~~~~~~~~~~~~~~~~
--!!! error TS1055: Type 'PromiseLike' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
- async function fn6(): Thenable { } // error
- ~~~~~~~~
--!!! error TS1055: Type 'typeof Thenable' is not a valid async function return type in ES5 because it does not refer to a Promise-compatible constructor value.
--!!! error TS1055: Construct signature return types 'Thenable' and 'PromiseLike' are incompatible.
--!!! error TS1055: The types returned by 'then(...)' are incompatible between these types.
--!!! error TS1055: Type 'void' is not assignable to type 'PromiseLike'.
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
- async function fn7() { return; } // valid: Promise
- async function fn8() { return 1; } // valid: Promise
- async function fn9() { return null; } // valid: Promise
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.js.diff
index 5b2f7fcfff..53bde6a328 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclaration15_es5.js.diff
@@ -20,7 +20,7 @@
- return __awaiter(this, void 0, void 0, function* () { });
-} // error
-function fn6() {
-- return __awaiter(this, void 0, Thenable, function* () { });
+- return __awaiter(this, void 0, void 0, function* () { });
-} // error
-function fn7() {
- return __awaiter(this, void 0, void 0, function* () { return; });
diff --git a/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclarationCapturesArguments_es5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclarationCapturesArguments_es5.errors.txt.diff
deleted file mode 100644
index 4297bd0718..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asyncFunctionDeclarationCapturesArguments_es5.errors.txt.diff
+++ /dev/null
@@ -1,19 +0,0 @@
---- old.asyncFunctionDeclarationCapturesArguments_es5.errors.txt
-+++ new.asyncFunctionDeclarationCapturesArguments_es5.errors.txt
-@@= skipped -0, +0 lines =@@
--asyncFunctionDeclarationCapturesArguments_es5.ts(5,36): error TS2522: The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method.
--
--
--==== asyncFunctionDeclarationCapturesArguments_es5.ts (1 errors) ====
-- class C {
-- method() {
-- function other() {}
-- async function fn () {
-- await other.apply(this, arguments);
-- ~~~~~~~~~
--!!! error TS2522: The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method.
-- }
-- }
-- }
--
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.errors.txt.diff
deleted file mode 100644
index 3faab8046f..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.errors.txt.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.asyncImportedPromise_es5.errors.txt
-+++ new.asyncImportedPromise_es5.errors.txt
-@@= skipped -0, +0 lines =@@
--
-+test.ts(3,25): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
-+
-+
-+==== task.ts (0 errors) ====
-+ export class Task extends Promise { }
-+
-+==== test.ts (1 errors) ====
-+ import { Task } from "./task";
-+ class Test {
-+ async example(): Task { return; }
-+ ~~~~~~~
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
-+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.js.diff
index e17ae5f94f..3a25c8cf24 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncImportedPromise_es5.js.diff
@@ -14,10 +14,9 @@
- });
-};
Object.defineProperty(exports, "__esModule", { value: true });
--var task_1 = require("./task");
class Test {
- example() {
-- return __awaiter(this, void 0, task_1.Task, function* () { return; });
+- return __awaiter(this, void 0, void 0, function* () { return; });
- }
+ async example() { return; }
}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncMethodWithSuper_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncMethodWithSuper_es5.js.diff
index a98df28ab0..a17e5ff0fe 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncMethodWithSuper_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncMethodWithSuper_es5.js.diff
@@ -5,17 +5,22 @@
class B extends A {
// async method with only call/get on 'super' does not require a binding
- simple() {
+- const _superIndex = name => super[name];
+- const _super = Object.create(null, {
+- x: { get: () => super.x },
+- y: { get: () => super.y }
+- });
- return __awaiter(this, void 0, void 0, function* () {
- // call with property access
-- super.x();
+- _super.x.call(this);
- // call additional property.
-- super.y();
+- _super.y.call(this);
- // call with element access
-- super["x"]();
+- _superIndex("x").call(this);
- // property access (read)
-- const a = super.x;
+- const a = _super.x;
- // element access (read)
-- const b = super["x"];
+- const b = _superIndex("x");
- });
+ async simple() {
+ // call with property access
@@ -31,24 +36,31 @@
}
// async method with assignment/destructuring on 'super' requires a binding
- advanced() {
+- const _superIndex = (function (geti, seti) {
+- const cache = Object.create(null);
+- return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });
+- })(name => super[name], (name, value) => super[name] = value);
+- const _super = Object.create(null, {
+- x: { get: () => super.x, set: v => super.x = v }
+- });
- return __awaiter(this, void 0, void 0, function* () {
- const f = () => { };
- // call with property access
-- super.x();
+- _super.x.call(this);
- // call with element access
-- super["x"]();
+- _superIndex("x").value.call(this);
- // property access (read)
-- const a = super.x;
+- const a = _super.x;
- // element access (read)
-- const b = super["x"];
+- const b = _superIndex("x").value;
- // property access (assign)
-- super.x = f;
+- _super.x = f;
- // element access (assign)
-- super["x"] = f;
+- _superIndex("x").value = f;
- // destructuring assign with property access
-- ({ f: super.x } = { f });
+- ({ f: _super.x } = { f });
- // destructuring assign with element access
-- ({ f: super["x"] } = { f });
+- ({ f: _superIndex("x").value } = { f });
- });
+ async advanced() {
+ const f = () => { };
diff --git a/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.errors.txt.diff
deleted file mode 100644
index 85d0389129..0000000000
--- a/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.errors.txt.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.asyncQualifiedReturnType_es5.errors.txt
-+++ new.asyncQualifiedReturnType_es5.errors.txt
-@@= skipped -0, +0 lines =@@
--
-+asyncQualifiedReturnType_es5.ts(6,21): error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
-+
-+
-+==== asyncQualifiedReturnType_es5.ts (1 errors) ====
-+ namespace X {
-+ export class MyPromise extends Promise {
-+ }
-+ }
-+
-+ async function f(): X.MyPromise {
-+ ~~~~~~~~~~~~~~~~~
-+!!! error TS1064: The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise'?
-+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.js.diff b/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.js.diff
index 12167fb7f9..bec000ad87 100644
--- a/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/asyncQualifiedReturnType_es5.js.diff
@@ -5,7 +5,7 @@
X.MyPromise = MyPromise;
})(X || (X = {}));
-function f() {
-- return __awaiter(this, void 0, X.MyPromise, function* () {
+- return __awaiter(this, void 0, void 0, function* () {
- });
+async function f() {
}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).errors.txt
deleted file mode 100644
index d20d2bfecf..0000000000
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).errors.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-autoAccessor1.ts(2,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor1.ts(3,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor1.ts(4,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor1.ts(5,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-
-
-==== autoAccessor1.ts (4 errors) ====
- class C1 {
- accessor a: any;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- accessor b = 1;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- static accessor c: any;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- static accessor d = 2;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- }
-
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js b/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js
index 477576343d..7be10ab1fe 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js
@@ -9,9 +9,6 @@ class C1 {
}
-
-
-!!!! File autoAccessor1.js missing from original emit, but present in noCheck emit
//// [autoAccessor1.js]
class C1 {
accessor a;
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js.diff
index 854cb8158c..c9acc8e936 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor1(target=es5).js.diff
@@ -1,8 +1,8 @@
--- old.autoAccessor1(target=es5).js
+++ new.autoAccessor1(target=es5).js
-@@= skipped -12, +12 lines =@@
+@@= skipped -9, +9 lines =@@
+
- !!!! File autoAccessor1.js missing from original emit, but present in noCheck emit
//// [autoAccessor1.js]
-var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
@@ -15,30 +15,25 @@
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
-};
--let C1 = (() => {
-- var _a, _C1_a_accessor_storage, _C1_b_accessor_storage, _C1_c_accessor_storage, _C1_d_accessor_storage;
-- class C1 {
-- constructor() {
-- _C1_a_accessor_storage.set(this, void 0);
-- _C1_b_accessor_storage.set(this, 1);
-- }
-- get a() { return __classPrivateFieldGet(this, _C1_a_accessor_storage, "f"); }
-- set a(value) { __classPrivateFieldSet(this, _C1_a_accessor_storage, value, "f"); }
-- get b() { return __classPrivateFieldGet(this, _C1_b_accessor_storage, "f"); }
-- set b(value) { __classPrivateFieldSet(this, _C1_b_accessor_storage, value, "f"); }
-- static get c() { return __classPrivateFieldGet(_a, _a, "f", _C1_c_accessor_storage); }
-- static set c(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1_c_accessor_storage); }
-- static get d() { return __classPrivateFieldGet(_a, _a, "f", _C1_d_accessor_storage); }
-- static set d(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1_d_accessor_storage); }
+-var _a, _C1_a_accessor_storage, _C1_b_accessor_storage, _C1_c_accessor_storage, _C1_d_accessor_storage;
+ class C1 {
+- constructor() {
+- _C1_a_accessor_storage.set(this, void 0);
+- _C1_b_accessor_storage.set(this, 1);
- }
-- _a = C1, _C1_a_accessor_storage = new WeakMap(), _C1_b_accessor_storage = new WeakMap();
-- _C1_c_accessor_storage = { value: void 0 };
-- _C1_d_accessor_storage = { value: 2 };
-- return C1;
--})();
-+class C1 {
+- get a() { return __classPrivateFieldGet(this, _C1_a_accessor_storage, "f"); }
+- set a(value) { __classPrivateFieldSet(this, _C1_a_accessor_storage, value, "f"); }
+- get b() { return __classPrivateFieldGet(this, _C1_b_accessor_storage, "f"); }
+- set b(value) { __classPrivateFieldSet(this, _C1_b_accessor_storage, value, "f"); }
+- static get c() { return __classPrivateFieldGet(_a, _a, "f", _C1_c_accessor_storage); }
+- static set c(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1_c_accessor_storage); }
+- static get d() { return __classPrivateFieldGet(_a, _a, "f", _C1_d_accessor_storage); }
+- static set d(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1_d_accessor_storage); }
+ accessor a;
+ accessor b = 1;
+ static accessor c;
+ static accessor d = 2;
-+}
\ No newline at end of file
+ }
+-_a = C1, _C1_a_accessor_storage = new WeakMap(), _C1_b_accessor_storage = new WeakMap();
+-_C1_c_accessor_storage = { value: void 0 };
+-_C1_d_accessor_storage = { value: 2 };
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).errors.txt
deleted file mode 100644
index 0637053416..0000000000
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).errors.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-autoAccessor3.ts(2,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor3.ts(3,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor3.ts(4,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor3.ts(5,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-
-
-==== autoAccessor3.ts (4 errors) ====
- class C1 {
- accessor "w": any;
- ~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- accessor "x" = 1;
- ~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- static accessor "y": any;
- ~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- static accessor "z" = 2;
- ~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- }
-
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js b/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js
index c702a35eba..cb2e729e0d 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js
@@ -9,9 +9,6 @@ class C1 {
}
-
-
-!!!! File autoAccessor3.js missing from original emit, but present in noCheck emit
//// [autoAccessor3.js]
class C1 {
accessor "w";
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js.diff
index c470bc2b27..d7b216153b 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor3(target=es5).js.diff
@@ -1,8 +1,8 @@
--- old.autoAccessor3(target=es5).js
+++ new.autoAccessor3(target=es5).js
-@@= skipped -12, +12 lines =@@
+@@= skipped -9, +9 lines =@@
+
- !!!! File autoAccessor3.js missing from original emit, but present in noCheck emit
//// [autoAccessor3.js]
-var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
@@ -15,30 +15,25 @@
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
-};
--let C1 = (() => {
-- var _a, _C1__a_accessor_storage, _C1__b_accessor_storage, _C1__c_accessor_storage, _C1__d_accessor_storage;
-- class C1 {
-- constructor() {
-- _C1__a_accessor_storage.set(this, void 0);
-- _C1__b_accessor_storage.set(this, 1);
-- }
-- get "w"() { return __classPrivateFieldGet(this, _C1__a_accessor_storage, "f"); }
-- set "w"(value) { __classPrivateFieldSet(this, _C1__a_accessor_storage, value, "f"); }
-- get "x"() { return __classPrivateFieldGet(this, _C1__b_accessor_storage, "f"); }
-- set "x"(value) { __classPrivateFieldSet(this, _C1__b_accessor_storage, value, "f"); }
-- static get "y"() { return __classPrivateFieldGet(_a, _a, "f", _C1__c_accessor_storage); }
-- static set "y"(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__c_accessor_storage); }
-- static get "z"() { return __classPrivateFieldGet(_a, _a, "f", _C1__d_accessor_storage); }
-- static set "z"(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__d_accessor_storage); }
+-var _a, _C1__a_accessor_storage, _C1__b_accessor_storage, _C1__c_accessor_storage, _C1__d_accessor_storage;
+ class C1 {
+- constructor() {
+- _C1__a_accessor_storage.set(this, void 0);
+- _C1__b_accessor_storage.set(this, 1);
- }
-- _a = C1, _C1__a_accessor_storage = new WeakMap(), _C1__b_accessor_storage = new WeakMap();
-- _C1__c_accessor_storage = { value: void 0 };
-- _C1__d_accessor_storage = { value: 2 };
-- return C1;
--})();
-+class C1 {
+- get "w"() { return __classPrivateFieldGet(this, _C1__a_accessor_storage, "f"); }
+- set "w"(value) { __classPrivateFieldSet(this, _C1__a_accessor_storage, value, "f"); }
+- get "x"() { return __classPrivateFieldGet(this, _C1__b_accessor_storage, "f"); }
+- set "x"(value) { __classPrivateFieldSet(this, _C1__b_accessor_storage, value, "f"); }
+- static get "y"() { return __classPrivateFieldGet(_a, _a, "f", _C1__c_accessor_storage); }
+- static set "y"(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__c_accessor_storage); }
+- static get "z"() { return __classPrivateFieldGet(_a, _a, "f", _C1__d_accessor_storage); }
+- static set "z"(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__d_accessor_storage); }
+ accessor "w";
+ accessor "x" = 1;
+ static accessor "y";
+ static accessor "z" = 2;
-+}
\ No newline at end of file
+ }
+-_a = C1, _C1__a_accessor_storage = new WeakMap(), _C1__b_accessor_storage = new WeakMap();
+-_C1__c_accessor_storage = { value: void 0 };
+-_C1__d_accessor_storage = { value: 2 };
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).errors.txt
deleted file mode 100644
index 5c481a6438..0000000000
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).errors.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-autoAccessor4.ts(2,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor4.ts(3,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor4.ts(4,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor4.ts(5,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-
-
-==== autoAccessor4.ts (4 errors) ====
- class C1 {
- accessor 0: any;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- accessor 1 = 1;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- static accessor 2: any;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- static accessor 3 = 2;
- ~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
- }
-
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js b/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js
index 7678436f1f..1e0ae8b496 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js
@@ -9,9 +9,6 @@ class C1 {
}
-
-
-!!!! File autoAccessor4.js missing from original emit, but present in noCheck emit
//// [autoAccessor4.js]
class C1 {
accessor 0;
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js.diff
index e68e9559aa..ec57fc968e 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor4(target=es5).js.diff
@@ -1,8 +1,8 @@
--- old.autoAccessor4(target=es5).js
+++ new.autoAccessor4(target=es5).js
-@@= skipped -12, +12 lines =@@
+@@= skipped -9, +9 lines =@@
+
- !!!! File autoAccessor4.js missing from original emit, but present in noCheck emit
//// [autoAccessor4.js]
-var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
@@ -15,30 +15,25 @@
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
-};
--let C1 = (() => {
-- var _a, _C1__a_accessor_storage, _C1__b_accessor_storage, _C1__c_accessor_storage, _C1__d_accessor_storage;
-- class C1 {
-- constructor() {
-- _C1__a_accessor_storage.set(this, void 0);
-- _C1__b_accessor_storage.set(this, 1);
-- }
-- get 0() { return __classPrivateFieldGet(this, _C1__a_accessor_storage, "f"); }
-- set 0(value) { __classPrivateFieldSet(this, _C1__a_accessor_storage, value, "f"); }
-- get 1() { return __classPrivateFieldGet(this, _C1__b_accessor_storage, "f"); }
-- set 1(value) { __classPrivateFieldSet(this, _C1__b_accessor_storage, value, "f"); }
-- static get 2() { return __classPrivateFieldGet(_a, _a, "f", _C1__c_accessor_storage); }
-- static set 2(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__c_accessor_storage); }
-- static get 3() { return __classPrivateFieldGet(_a, _a, "f", _C1__d_accessor_storage); }
-- static set 3(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__d_accessor_storage); }
+-var _a, _C1__a_accessor_storage, _C1__b_accessor_storage, _C1__c_accessor_storage, _C1__d_accessor_storage;
+ class C1 {
+- constructor() {
+- _C1__a_accessor_storage.set(this, void 0);
+- _C1__b_accessor_storage.set(this, 1);
- }
-- _a = C1, _C1__a_accessor_storage = new WeakMap(), _C1__b_accessor_storage = new WeakMap();
-- _C1__c_accessor_storage = { value: void 0 };
-- _C1__d_accessor_storage = { value: 2 };
-- return C1;
--})();
-+class C1 {
+- get 0() { return __classPrivateFieldGet(this, _C1__a_accessor_storage, "f"); }
+- set 0(value) { __classPrivateFieldSet(this, _C1__a_accessor_storage, value, "f"); }
+- get 1() { return __classPrivateFieldGet(this, _C1__b_accessor_storage, "f"); }
+- set 1(value) { __classPrivateFieldSet(this, _C1__b_accessor_storage, value, "f"); }
+- static get 2() { return __classPrivateFieldGet(_a, _a, "f", _C1__c_accessor_storage); }
+- static set 2(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__c_accessor_storage); }
+- static get 3() { return __classPrivateFieldGet(_a, _a, "f", _C1__d_accessor_storage); }
+- static set 3(value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__d_accessor_storage); }
+ accessor 0;
+ accessor 1 = 1;
+ static accessor 2;
+ static accessor 3 = 2;
-+}
\ No newline at end of file
+ }
+-_a = C1, _C1__a_accessor_storage = new WeakMap(), _C1__b_accessor_storage = new WeakMap();
+-_C1__c_accessor_storage = { value: void 0 };
+-_C1__d_accessor_storage = { value: 2 };
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).errors.txt
index 5800cd441f..2ce40eaac0 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).errors.txt
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).errors.txt
@@ -1,24 +1,12 @@
-autoAccessor5.ts(2,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor5.ts(3,14): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor5.ts(4,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
-autoAccessor5.ts(5,21): error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
autoAccessor5.ts(10,14): error TS1166: A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.
-==== autoAccessor5.ts (5 errors) ====
+==== autoAccessor5.ts (1 errors) ====
class C1 {
accessor ["w"]: any;
- ~~~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
accessor ["x"] = 1;
- ~~~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
static accessor ["y"]: any;
- ~~~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
static accessor ["z"] = 2;
- ~~~~~
-!!! error TS18045: Properties with the 'accessor' modifier are only available when targeting ECMAScript 2015 and higher.
}
declare var f: any;
diff --git a/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).js.diff
index 3923429b30..1bd358fc19 100644
--- a/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/autoAccessor5(target=es5).js.diff
@@ -15,39 +15,33 @@
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
-};
--var _C2__a_accessor_storage, _a;
--let C1 = (() => {
-- var _a, _C1__b_accessor_storage, _C1__c_accessor_storage, _C1__d_accessor_storage, _C1__e_accessor_storage;
-- class C1 {
-- constructor() {
-- _C1__b_accessor_storage.set(this, void 0);
-- _C1__c_accessor_storage.set(this, 1);
-- }
-- get [(_C1__b_accessor_storage = new WeakMap(), _C1__c_accessor_storage = new WeakMap(), "w")]() { return __classPrivateFieldGet(this, _C1__b_accessor_storage, "f"); }
-- set ["w"](value) { __classPrivateFieldSet(this, _C1__b_accessor_storage, value, "f"); }
-- get ["x"]() { return __classPrivateFieldGet(this, _C1__c_accessor_storage, "f"); }
-- set ["x"](value) { __classPrivateFieldSet(this, _C1__c_accessor_storage, value, "f"); }
-- static get ["y"]() { return __classPrivateFieldGet(_a, _a, "f", _C1__d_accessor_storage); }
-- static set ["y"](value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__d_accessor_storage); }
-- static get ["z"]() { return __classPrivateFieldGet(_a, _a, "f", _C1__e_accessor_storage); }
-- static set ["z"](value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__e_accessor_storage); }
+-var _a, _C1__a_accessor_storage, _C1__b_accessor_storage, _C1__c_accessor_storage, _C1__d_accessor_storage, _C2__e_accessor_storage, _b;
+ class C1 {
+- constructor() {
+- _C1__a_accessor_storage.set(this, void 0);
+- _C1__b_accessor_storage.set(this, 1);
- }
-- _a = C1;
-- _C1__d_accessor_storage = { value: void 0 };
-- _C1__e_accessor_storage = { value: 2 };
-- return C1;
--})();
-+class C1 {
+- get [(_C1__a_accessor_storage = new WeakMap(), _C1__b_accessor_storage = new WeakMap(), "w")]() { return __classPrivateFieldGet(this, _C1__a_accessor_storage, "f"); }
+- set ["w"](value) { __classPrivateFieldSet(this, _C1__a_accessor_storage, value, "f"); }
+- get ["x"]() { return __classPrivateFieldGet(this, _C1__b_accessor_storage, "f"); }
+- set ["x"](value) { __classPrivateFieldSet(this, _C1__b_accessor_storage, value, "f"); }
+- static get ["y"]() { return __classPrivateFieldGet(_a, _a, "f", _C1__c_accessor_storage); }
+- static set ["y"](value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__c_accessor_storage); }
+- static get ["z"]() { return __classPrivateFieldGet(_a, _a, "f", _C1__d_accessor_storage); }
+- static set ["z"](value) { __classPrivateFieldSet(_a, _a, value, "f", _C1__d_accessor_storage); }
+ accessor ["w"];
+ accessor ["x"] = 1;
+ static accessor ["y"];
+ static accessor ["z"] = 2;
-+}
+ }
+-_a = C1;
+-_C1__c_accessor_storage = { value: void 0 };
+-_C1__d_accessor_storage = { value: 2 };
class C2 {
- constructor() {
-- _C2__a_accessor_storage.set(this, 1);
+- _C2__e_accessor_storage.set(this, 1);
- }
-- get [(_C2__a_accessor_storage = new WeakMap(), _a = f())]() { return __classPrivateFieldGet(this, _C2__a_accessor_storage, "f"); }
-- set [_a](value) { __classPrivateFieldSet(this, _C2__a_accessor_storage, value, "f"); }
+- get [(_C2__e_accessor_storage = new WeakMap(), _b = f())]() { return __classPrivateFieldGet(this, _C2__e_accessor_storage, "f"); }
+- set [_b](value) { __classPrivateFieldSet(this, _C2__e_accessor_storage, value, "f"); }
+ accessor [f()] = 1;
}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/bundlerCommonJS.js.diff b/testdata/baselines/reference/submodule/conformance/bundlerCommonJS.js.diff
deleted file mode 100644
index 42e1efe9d2..0000000000
--- a/testdata/baselines/reference/submodule/conformance/bundlerCommonJS.js.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.bundlerCommonJS.js
-+++ new.bundlerCommonJS.js
-@@= skipped -33, +33 lines =@@
- //// [requires.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var pkg = require("pkg");
-+const pkg = require("pkg");
- pkg.x;
- //// [imports.js]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var pkg_1 = require("pkg");
-+const pkg_1 = require("pkg");
- pkg_1.x;
- //// [real-imports.mjs]
- export {};
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/chained2.js.diff b/testdata/baselines/reference/submodule/conformance/chained2.js.diff
index e736344345..1b66f25f7e 100644
--- a/testdata/baselines/reference/submodule/conformance/chained2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/chained2.js.diff
@@ -7,22 +7,4 @@
+ a;
}
//// [b.js]
- "use strict";
-@@= skipped -41, +42 lines =@@
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.default = void 0;
--var types = __importStar(require("./b"));
-+const types = __importStar(require("./b"));
- exports.default = types;
- //// [d.js]
- "use strict";
-@@= skipped -8, +8 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var c_1 = __importDefault(require("./c"));
-+const c_1 = __importDefault(require("./c"));
- new c_1.default.A();
- new c_1.default.B();
- const a = {};
\ No newline at end of file
+ "use strict";
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenCanBeTupleType.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenCanBeTupleType.js.diff
deleted file mode 100644
index 4692b199e4..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenCanBeTupleType.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenCanBeTupleType.js
-+++ new.checkJsxChildrenCanBeTupleType.js
-@@= skipped -29, +29 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- class ResizablePanel extends react_1.default.Component {
- }
- const test = react_1.default.createElement(ResizablePanel, null,
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty1.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty1.js.diff
deleted file mode 100644
index af366692f1..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty1.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty1.js
-+++ new.checkJsxChildrenProperty1.js
-@@= skipped -26, +26 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- function Comp(p) {
- return {p.b}
;
- }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty12.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty12.js.diff
deleted file mode 100644
index 49e5a887b1..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty12.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty12.js
-+++ new.checkJsxChildrenProperty12.js
-@@= skipped -36, +36 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- let condition;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty13.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty13.js.diff
deleted file mode 100644
index 78a6200b11..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty13.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty13.js
-+++ new.checkJsxChildrenProperty13.js
-@@= skipped -31, +31 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- // Error children are specified twice
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty14.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty14.js.diff
deleted file mode 100644
index 3a64c09874..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty14.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty14.js
-+++ new.checkJsxChildrenProperty14.js
-@@= skipped -46, +46 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- return (My Button
);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty15.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty15.js.diff
deleted file mode 100644
index 33ae2d0bcc..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty15.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty15.js
-+++ new.checkJsxChildrenProperty15.js
-@@= skipped -17, +17 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- const Tag = (x) => ;
- // OK
- const k1 = ;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty2.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty2.js.diff
deleted file mode 100644
index 5f06b1363d..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty2.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty2.js
-+++ new.checkJsxChildrenProperty2.js
-@@= skipped -57, +57 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- function Comp(p) {
- return {p.b}
;
- }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty3.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty3.js.diff
deleted file mode 100644
index 12b762e5e7..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty3.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty3.js
-+++ new.checkJsxChildrenProperty3.js
-@@= skipped -43, +43 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class FetchUser extends React.Component {
- render() {
- return this.state
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty4.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty4.js.diff
deleted file mode 100644
index 4fa78e0e07..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty4.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty4.js
-+++ new.checkJsxChildrenProperty4.js
-@@= skipped -48, +48 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class FetchUser extends React.Component {
- render() {
- return this.state
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty5.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty5.js.diff
deleted file mode 100644
index ebef2eb436..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty5.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty5.js
-+++ new.checkJsxChildrenProperty5.js
-@@= skipped -34, +34 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- return (My Button
);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty6.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty6.js.diff
deleted file mode 100644
index 9f46f535a6..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty6.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty6.js
-+++ new.checkJsxChildrenProperty6.js
-@@= skipped -47, +47 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- return (My Button
);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty7.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty7.js.diff
deleted file mode 100644
index 4487534e65..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty7.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty7.js
-+++ new.checkJsxChildrenProperty7.js
-@@= skipped -32, +32 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- return (My Button
);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty8.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty8.js.diff
deleted file mode 100644
index d6fc5fd102..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty8.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty8.js
-+++ new.checkJsxChildrenProperty8.js
-@@= skipped -33, +33 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- class Button extends React.Component {
- render() {
- return (My Button
);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty9.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty9.js.diff
deleted file mode 100644
index aa56d35dbe..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxChildrenProperty9.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxChildrenProperty9.js
-+++ new.checkJsxChildrenProperty9.js
-@@= skipped -10, +10 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
- // OK
- let k1 =
Hello
world
;
- let k2 =
Hello
{(user) => {user.name}
};
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff
deleted file mode 100644
index 2ab7e9944a..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxGenericTagHasCorrectInferences.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxGenericTagHasCorrectInferences.js
-+++ new.checkJsxGenericTagHasCorrectInferences.js
-@@= skipped -50, +50 lines =@@
- };
- })();
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = __importStar(require("react"));
-+const React = __importStar(require("react"));
- let a = a}/>; // No error
- let b = a}/>; // No error - Values should be reinstantiated with `number` (since `object` is a default, not a constraint)
- let c = ({ x: a.x })}/>; // No Error
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff
index ddb3295d03..a6bbff1ef6 100644
--- a/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/checkJsxSubtleSkipContextSensitiveBug.js.diff
@@ -15,8 +15,7 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
///
--var React = __importStar(require("react"));
-+const React = __importStar(require("react"));
+ const React = __importStar(require("react"));
class AsyncLoader extends React.Component {
render() { return null; }
}
diff --git a/testdata/baselines/reference/submodule/conformance/checkJsxUnionSFXContextualTypeInferredCorrectly.js.diff b/testdata/baselines/reference/submodule/conformance/checkJsxUnionSFXContextualTypeInferredCorrectly.js.diff
deleted file mode 100644
index 337f068694..0000000000
--- a/testdata/baselines/reference/submodule/conformance/checkJsxUnionSFXContextualTypeInferredCorrectly.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.checkJsxUnionSFXContextualTypeInferredCorrectly.js
-+++ new.checkJsxUnionSFXContextualTypeInferredCorrectly.js
-@@= skipped -48, +48 lines =@@
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.ComponentWithUnion = ComponentWithUnion;
- exports.HereIsTheError = HereIsTheError;
--var react_1 = __importDefault(require("react"));
-+const react_1 = __importDefault(require("react"));
- function ComponentWithUnion(props) {
- return react_1.default.createElement("h1", null);
- }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/circularReference.js.diff b/testdata/baselines/reference/submodule/conformance/circularReference.js.diff
index 7ecd85b16a..4a55035447 100644
--- a/testdata/baselines/reference/submodule/conformance/circularReference.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/circularReference.js.diff
@@ -1,11 +1,6 @@
--- old.circularReference.js
+++ new.circularReference.js
-@@= skipped -36, +36 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.M1 = void 0;
--var foo2 = require("./foo2");
-+const foo2 = require("./foo2");
+@@= skipped -40, +40 lines =@@
var M1;
(function (M1) {
class C1 {
@@ -15,11 +10,6 @@
this.m1 = new foo2.M1.C1();
this.m1.y = 10; // OK
@@= skipped -16, +18 lines =@@
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.M1 = void 0;
--var foo1 = require("./foo1");
-+const foo1 = require("./foo1");
var M1;
(function (M1) {
class C1 {
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).errors.txt b/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).errors.txt
deleted file mode 100644
index e08815d9d4..0000000000
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).errors.txt
+++ /dev/null
@@ -1,28 +0,0 @@
-classStaticBlock5.ts(8,22): error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
-classStaticBlock5.ts(12,15): error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
-classStaticBlock5.ts(13,15): error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
-
-
-==== classStaticBlock5.ts (3 errors) ====
- class B {
- static a = 1;
- static b = 2;
- }
-
- class C extends B {
- static b = 3;
- static c = super.a
- ~
-!!! error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
-
- static {
- this.b;
- super.b;
- ~
-!!! error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
- super.a;
- ~
-!!! error TS2340: Only public and protected methods of the base class are accessible via the 'super' keyword.
- }
- }
-
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).js.diff
index 523a9b1e11..0db565f1d0 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock5(target=es5).js.diff
@@ -4,23 +4,21 @@
//// [classStaticBlock5.js]
--let B = (() => {
-- class B {
-- }
-- B.a = 1;
-- B.b = 2;
-- return B;
+-var _a, _b;
+ class B {
+-}
+-B.a = 1;
+-B.b = 2;
+-class C extends (_b = B) {
+-}
+-_a = C;
+-C.b = 3;
+-C.c = Reflect.get(_b, "a", _a);
+-(() => {
+- _a.b;
+- Reflect.get(_b, "b", _a);
+- Reflect.get(_b, "a", _a);
-})();
--let C = (() => {
-- var _a;
-- class C extends B {
-- }
-- _a = C;
-- C.b = 3;
-- C.c = super.a;
-- (() => {
-- _a.b;
-+class B {
+ static a = 1;
+ static b = 2;
+}
@@ -29,10 +27,7 @@
+ static c = super.a;
+ static {
+ this.b;
- super.b;
- super.a;
-- })();
-- return C;
--})();
++ super.b;
++ super.a;
+ }
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock6.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock6.errors.txt.diff
deleted file mode 100644
index 5e113bc0ec..0000000000
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock6.errors.txt.diff
+++ /dev/null
@@ -1,27 +0,0 @@
---- old.classStaticBlock6.errors.txt
-+++ new.classStaticBlock6.errors.txt
-@@= skipped -9, +9 lines =@@
- classStaticBlock6.ts(41,13): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
- classStaticBlock6.ts(42,13): error TS18037: 'await' expression cannot be used inside a class static block.
- classStaticBlock6.ts(42,18): error TS1109: Expression expected.
--classStaticBlock6.ts(45,17): error TS2522: The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method.
- classStaticBlock6.ts(46,22): error TS1109: Expression expected.
- classStaticBlock6.ts(55,13): error TS2815: 'arguments' cannot be referenced in property initializers or class static initialization blocks.
- classStaticBlock6.ts(66,14): error TS2729: Property 'b' is used before its initialization.
- classStaticBlock6.ts(69,18): error TS2729: Property 'b' is used before its initialization.
-
-
--==== classStaticBlock6.ts (17 errors) ====
-+==== classStaticBlock6.ts (16 errors) ====
- class B {
- static a = 1;
- }
-@@= skipped -77, +76 lines =@@
-
- async function ff () {
- arguments;
-- ~~~~~~~~~
--!!! error TS2522: The 'arguments' object cannot be referenced in an async function or method in ES5. Consider using a standard function or method.
- await;
- ~
- !!! error TS1109: Expression expected.
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock6.js.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock6.js.diff
index 4193dfb70e..4a7a3db40e 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock6.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock6.js.diff
@@ -13,16 +13,29 @@
- step((generator = generator.apply(thisArg, _arguments || [])).next());
- });
-};
--let B = (() => {
-- class B {
+-var _a, _b, _c;
+ class B {
+-}
+-B.a = 1;
+-class C extends (_b = B) {
+-}
+-_a = C;
+-(() => {
+- let await = 1;
+- let arguments = 1;
+- let eval = 1;
+-})();
+-(() => {
+- yield ;
+- if (true) {
- }
-- B.a = 1;
-- return B;
+- arguments;
+- yield ;
+- super();
-})();
-+class B {
+ static a = 1;
+}
- class C extends B {
++class C extends B {
+ static {
+ let await = 1;
+ let arguments = 1;
@@ -36,46 +49,38 @@
+ await ;
+ super();
+ }
- }
--(() => {
-- let await = 1;
-- let arguments = 1;
-- let eval = 1;
--})();
--(() => {
-- yield ;
-- if (true) {
-- }
-- arguments;
-- yield ;
-- super();
--})();
++}
class CC {
constructor() {
- class C extends B {
+- var _d, _e;
+- class C extends (_e = B) {
- }
+- _d = C;
- (() => {
- class CC extends B {
- constructor() {
- super();
+- }
+- }
+- super();
+- })();
+- }
+-}
+-function foo() {
+- return __awaiter(this, void 0, void 0, function* () {
+ class C extends B {
+ static {
+ class CC extends B {
+ constructor() {
+ super();
+ }
- }
++ }
+ super();
- }
-- super();
-- })();
-+ }
- }
- }
--function foo() {
-- return __awaiter(this, void 0, void 0, function* () {
-- class C extends B {
-- }
++ }
+ }
- (() => {
++ }
++}
+async function foo() {
+ class C extends B {
+ static {
@@ -112,25 +117,22 @@
- })();
+ }
}
--let foo2 = (() => {
-- var _a;
-- class foo2 {
-- }
-- _a = foo2;
-- (() => {
-- _a.b; // should error
-+class foo2 {
+ class foo2 {
+-}
+-_c = foo2;
+-(() => {
+- _c.b; // should error
+- let b; // ok
+- if (1) {
+- _c.b; // should error
+ static {
+ this.b; // should error
- let b; // ok
- if (1) {
-- _a.b; // should error
++ let b; // ok
++ if (1) {
+ this.b; // should error
- }
-- })();
-- foo2.b = 1;
-- return foo2;
++ }
+ }
-})();
-+ }
+-foo2.b = 1;
+ static b = 1;
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock9(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock9(target=es5).js.diff
index 00a878e394..409ed7e65f 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock9(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock9(target=es5).js.diff
@@ -1,22 +1,17 @@
--- old.classStaticBlock9(target=es5).js
+++ new.classStaticBlock9(target=es5).js
-@@= skipped -10, +10 lines =@@
-
+@@= skipped -11, +11 lines =@@
//// [classStaticBlock9.js]
--let A = (() => {
-- class A {
-- }
-- A.bar = A.foo + 1;
-- (() => {
-+class A {
+ class A {
+ static bar = A.foo + 1;
+ static {
- A.foo + 2;
-- })();
-- A.foo = 1;
-- return A;
--})();
++ A.foo + 2;
+ }
+ static foo = 1;
-+}
\ No newline at end of file
+ }
+-A.bar = A.foo + 1;
+-(() => {
+- A.foo + 2;
+-})();
+-A.foo = 1;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classWithPrivateProperty.js.diff b/testdata/baselines/reference/submodule/conformance/classWithPrivateProperty.js.diff
index 5e302ae489..2623009813 100644
--- a/testdata/baselines/reference/submodule/conformance/classWithPrivateProperty.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classWithPrivateProperty.js.diff
@@ -1,32 +1,24 @@
--- old.classWithPrivateProperty.js
+++ new.classWithPrivateProperty.js
-@@= skipped -25, +25 lines =@@
-
+@@= skipped -26, +26 lines =@@
//// [classWithPrivateProperty.js]
// accessing any private outside the class is an error
--let C = (() => {
-- class C {
-- constructor() {
-- this.a = '';
-- this.b = '';
-- this.d = () => '';
-- }
-- c() { return ''; }
-- static f() { return ''; }
+ class C {
+- constructor() {
+- this.a = '';
+- this.b = '';
+- this.d = () => '';
- }
-- C.g = () => '';
-- return C;
--})();
-+class C {
+ x;
+ a = '';
+ b = '';
-+ c() { return ''; }
+ c() { return ''; }
+ d = () => '';
+ static e;
-+ static f() { return ''; }
+ static f() { return ''; }
+ static g = () => '';
-+}
+ }
+-C.g = () => '';
var c = new C();
var r1 = c.x;
var r2 = c.a;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classWithProtectedProperty.js.diff b/testdata/baselines/reference/submodule/conformance/classWithProtectedProperty.js.diff
index 825229b1b7..1b148e2dac 100644
--- a/testdata/baselines/reference/submodule/conformance/classWithProtectedProperty.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classWithProtectedProperty.js.diff
@@ -1,32 +1,24 @@
--- old.classWithProtectedProperty.js
+++ new.classWithProtectedProperty.js
-@@= skipped -30, +30 lines =@@
-
+@@= skipped -31, +31 lines =@@
//// [classWithProtectedProperty.js]
// accessing any protected outside the class is an error
--let C = (() => {
-- class C {
-- constructor() {
-- this.a = '';
-- this.b = '';
-- this.d = () => '';
-- }
-- c() { return ''; }
-- static f() { return ''; }
+ class C {
+- constructor() {
+- this.a = '';
+- this.b = '';
+- this.d = () => '';
- }
-- C.g = () => '';
-- return C;
--})();
-+class C {
+ x;
+ a = '';
+ b = '';
-+ c() { return ''; }
+ c() { return ''; }
+ d = () => '';
+ static e;
-+ static f() { return ''; }
+ static f() { return ''; }
+ static g = () => '';
-+}
+ }
+-C.g = () => '';
class D extends C {
method() {
// No errors
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classWithPublicProperty.js.diff b/testdata/baselines/reference/submodule/conformance/classWithPublicProperty.js.diff
index 4e0d8e5aa1..69631df5d6 100644
--- a/testdata/baselines/reference/submodule/conformance/classWithPublicProperty.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classWithPublicProperty.js.diff
@@ -1,32 +1,24 @@
--- old.classWithPublicProperty.js
+++ new.classWithPublicProperty.js
-@@= skipped -23, +23 lines =@@
- var r8: string = C.g();
+@@= skipped -24, +24 lines =@@
//// [classWithPublicProperty.js]
--let C = (() => {
-- class C {
-- constructor() {
-- this.a = '';
-- this.b = '';
-- this.d = () => '';
-- }
-- c() { return ''; }
-- static f() { return ''; }
+ class C {
+- constructor() {
+- this.a = '';
+- this.b = '';
+- this.d = () => '';
- }
-- C.g = () => '';
-- return C;
--})();
-+class C {
+ x;
+ a = '';
+ b = '';
-+ c() { return ''; }
+ c() { return ''; }
+ d = () => '';
+ static e;
-+ static f() { return ''; }
+ static f() { return ''; }
+ static g = () => '';
-+}
+ }
+-C.g = () => '';
// all of these are valid
var c = new C();
var r1 = c.x;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterBindingPattern(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterBindingPattern(target=es5).js.diff
index bbfc9e85ff..1d22c3734e 100644
--- a/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterBindingPattern(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterBindingPattern(target=es5).js.diff
@@ -4,10 +4,10 @@
//// [classWithStaticFieldInParameterBindingPattern.js]
// https://github.com/microsoft/TypeScript/issues/36295
--(({ [(_a = class {
+-((_a) => { var _b; var { [(_b = class {
- },
-- _a.x = 1,
-- _a).x]: b = "" }) => { var _a; })();
+- _b.x = 1,
+- _b).x]: b = "" } = _a; })();
+(({ [class {
+ static x = 1;
+}.x]: b = "" }) => { })();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterInitializer(target=es5).js.diff b/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterInitializer(target=es5).js.diff
index 6f097ea891..546679a441 100644
--- a/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterInitializer(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classWithStaticFieldInParameterInitializer(target=es5).js.diff
@@ -9,11 +9,11 @@
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
-};
// https://github.com/microsoft/TypeScript/issues/36295
--((b = (_a = class {
+-((b) => { var _a; if (b === void 0) { b = (_a = class {
- },
- __setFunctionName(_a, "b"),
- _a.x = 1,
-- _a)) => { var _a; })();
+- _a); } })();
+((b = class {
+ static x = 1;
+}) => { })();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/commentEmittingInPreserveJsx1.js.diff b/testdata/baselines/reference/submodule/conformance/commentEmittingInPreserveJsx1.js.diff
index 31d438d002..37406ad7e8 100644
--- a/testdata/baselines/reference/submodule/conformance/commentEmittingInPreserveJsx1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/commentEmittingInPreserveJsx1.js.diff
@@ -1,13 +1,6 @@
--- old.commentEmittingInPreserveJsx1.js
+++ new.commentEmittingInPreserveJsx1.js
-@@= skipped -34, +34 lines =@@
- //// [file.jsx]
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var React = require("react");
-+const React = require("react");
-
- // Not Comment
+@@= skipped -40, +40 lines =@@
;
// Not Comment
diff --git a/testdata/baselines/reference/submodule/conformance/commonJSImportAsPrimaryExpression.js.diff b/testdata/baselines/reference/submodule/conformance/commonJSImportAsPrimaryExpression.js.diff
index 9aaab82ee3..a625f6f3e1 100644
--- a/testdata/baselines/reference/submodule/conformance/commonJSImportAsPrimaryExpression.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/commonJSImportAsPrimaryExpression.js.diff
@@ -1,28 +1,17 @@
--- old.commonJSImportAsPrimaryExpression.js
+++ new.commonJSImportAsPrimaryExpression.js
-@@= skipped -16, +16 lines =@@
- "use strict";
+@@= skipped -17, +17 lines =@@
Object.defineProperty(exports, "__esModule", { value: true });
exports.C1 = void 0;
--let C1 = (() => {
-- class C1 {
-- constructor() {
-- this.m1 = 42;
-- }
+ class C1 {
+- constructor() {
+- this.m1 = 42;
- }
-- C1.s1 = true;
-- return C1;
--})();
-+class C1 {
+ m1 = 42;
+ static s1 = true;
-+}
+ }
exports.C1 = C1;
+-C1.s1 = true;
//// [foo_1.js]
"use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
--var foo = require("./foo_0");
-+const foo = require("./foo_0");
- if (foo.C1.s1) {
- // Should cause runtime import
- }
\ No newline at end of file
+ Object.defineProperty(exports, "__esModule", { value: true });
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/commonJSImportNotAsPrimaryExpression.js.diff b/testdata/baselines/reference/submodule/conformance/commonJSImportNotAsPrimaryExpression.js.diff
index c6c120a3c8..eb51d10bf4 100644
--- a/testdata/baselines/reference/submodule/conformance/commonJSImportNotAsPrimaryExpression.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/commonJSImportNotAsPrimaryExpression.js.diff
@@ -1,22 +1,17 @@
--- old.commonJSImportNotAsPrimaryExpression.js
+++ new.commonJSImportNotAsPrimaryExpression.js
-@@= skipped -34, +34 lines =@@
- "use strict";
+@@= skipped -35, +35 lines =@@
Object.defineProperty(exports, "__esModule", { value: true });
exports.E1 = exports.C1 = void 0;
--let C1 = (() => {
-- class C1 {
-- constructor() {
-- this.m1 = 42;
-- }
+ class C1 {
+- constructor() {
+- this.m1 = 42;
- }
-- C1.s1 = true;
-- return C1;
--})();
-+class C1 {
+ m1 = 42;
+ static s1 = true;
-+}
+ }
exports.C1 = C1;
+-C1.s1 = true;
var E1;
- (function (E1) {
\ No newline at end of file
+ (function (E1) {
+ E1[E1["A"] = 0] = "A";
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/computedPropertyNames12_ES5.js.diff b/testdata/baselines/reference/submodule/conformance/computedPropertyNames12_ES5.js.diff
index 2e9693def1..b204a546c9 100644
--- a/testdata/baselines/reference/submodule/conformance/computedPropertyNames12_ES5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/computedPropertyNames12_ES5.js.diff
@@ -1,23 +1,19 @@
--- old.computedPropertyNames12_ES5.js
+++ new.computedPropertyNames12_ES5.js
-@@= skipped -21, +21 lines =@@
+@@= skipped -18, +18 lines =@@
+ }
+
+ //// [computedPropertyNames12_ES5.js]
+-var _a, _b, _c;
var s;
var n;
var a;
--let C = (() => {
-- var _a, _b, _c;
-- class C {
-- constructor() {
-- this[_a] = n;
-- this[_b] = 2;
-- this[`hello bye`] = 0;
-- }
+ class C {
+- constructor() {
+- this[_a] = n;
+- this[_b] = 2;
+- this[`hello bye`] = 0;
- }
-- _a = n, s + s, _b = s + n, +s, _c = `hello ${a} bye`;
-- C[_c] = 0;
-- return C;
--})();
-+class C {
+ [s];
+ [n] = n;
+ static [s + s];
@@ -29,4 +25,6 @@
+ static [true];
+ [`hello bye`] = 0;
+ static [`hello ${a} bye`] = 0;
-+}
\ No newline at end of file
+ }
+-_a = n, s + s, _b = s + n, +s, _c = `hello ${a} bye`;
+-C[_c] = 0;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff b/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff
index c1022c137b..9024205d48 100644
--- a/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/constructableDecoratorOnClass01.js.diff
@@ -12,14 +12,11 @@
-};
class CtorDtor {
}
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- CtorDtor
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+-C = __decorate([
+- CtorDtor
+-], C);
+@CtorDtor
+class C {
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff b/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff
deleted file mode 100644
index 781946ee07..0000000000
--- a/testdata/baselines/reference/submodule/conformance/contextuallyTypedStringLiteralsInJsxAttributes02.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.contextuallyTypedStringLiteralsInJsxAttributes02.js
-+++ new.contextuallyTypedStringLiteralsInJsxAttributes02.js
-@@= skipped -44, +44 lines =@@
- exports.MainButton = MainButton;
- exports.NoOverload = NoOverload;
- exports.NoOverload1 = NoOverload1;
--var React = require("react");
-+const React = require("react");
- function MainButton(props) {
- const linkProps = props;
- if (linkProps.goTo) {
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff
deleted file mode 100644
index 74e4eda0b3..0000000000
--- a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=false).js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.declarationFileForJsonImport(resolvejsonmodule=false).js
-+++ new.declarationFileForJsonImport(resolvejsonmodule=false).js
-@@= skipped -14, +14 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var data_json_1 = __importDefault(require("./data.json"));
-+const data_json_1 = __importDefault(require("./data.json"));
- let x = data_json_1.default;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff b/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff
deleted file mode 100644
index 034ad0eca5..0000000000
--- a/testdata/baselines/reference/submodule/conformance/declarationFileForJsonImport(resolvejsonmodule=true).js.diff
+++ /dev/null
@@ -1,9 +0,0 @@
---- old.declarationFileForJsonImport(resolvejsonmodule=true).js
-+++ new.declarationFileForJsonImport(resolvejsonmodule=true).js
-@@= skipped -14, +14 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var data_json_1 = __importDefault(require("./data.json"));
-+const data_json_1 = __importDefault(require("./data.json"));
- let x = data_json_1.default;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff
index 3c117371c4..1c1412c2cc 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass1.js.diff
@@ -10,25 +10,20 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
+-var Foo_1;
function decorator() {
return (target) => { };
}
--let Foo = (() => {
-- var Foo_1;
-- let Foo = Foo_1 = class Foo {
-- static func() {
-- return new Foo_1();
-- }
-- };
-- Foo = Foo_1 = __decorate([
-- decorator()
-- ], Foo);
-- return Foo;
--})();
+-let Foo = Foo_1 = class Foo {
+@decorator()
+class Foo {
-+ static func() {
+ static func() {
+- return new Foo_1();
+ return new Foo();
-+ }
+ }
+-};
+-Foo = Foo_1 = __decorate([
+- decorator()
+-], Foo);
+}
Foo.func();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff
index 6f7d73cf8f..8d1623a8e0 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass2.js.diff
@@ -10,27 +10,22 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
+-var Foo_1;
function decorator() {
return (target) => { };
}
try {
-- let Foo = (() => {
-- var Foo_1;
-- let Foo = Foo_1 = class Foo {
-- static func() {
-- return new Foo_1();
-- }
-- };
-- Foo = Foo_1 = __decorate([
-- decorator()
-- ], Foo);
-- return Foo;
-- })();
+- let Foo = Foo_1 = class Foo {
+ @decorator()
+ class Foo {
-+ static func() {
+ static func() {
+- return new Foo_1();
+ return new Foo();
-+ }
+ }
+- };
+- Foo = Foo_1 = __decorate([
+- decorator()
+- ], Foo);
+ }
Foo.func();
}
diff --git a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff
index 6385159499..b899d74585 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratedBlockScopedClass3.js.diff
@@ -10,46 +10,35 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
+-var Foo_1, Foo_2;
function decorator() {
return (target) => { };
}
--let Foo = (() => {
-- var Foo_1;
-- let Foo = Foo_1 = class Foo {
-- static func() {
-- return new Foo_1();
-- }
-- };
-- Foo = Foo_1 = __decorate([
-- decorator()
-- ], Foo);
-- return Foo;
--})();
+-let Foo = Foo_1 = class Foo {
+@decorator()
+class Foo {
-+ static func() {
+ static func() {
+- return new Foo_1();
+ return new Foo();
-+ }
+ }
+-};
+-Foo = Foo_1 = __decorate([
+- decorator()
+-], Foo);
+}
Foo.func();
try {
-- let Foo = (() => {
-- var Foo_2;
-- let Foo = Foo_2 = class Foo {
-- static func() {
-- return new Foo_2();
-- }
-- };
-- Foo = Foo_2 = __decorate([
-- decorator()
-- ], Foo);
-- return Foo;
-- })();
+- let Foo = Foo_2 = class Foo {
+ @decorator()
+ class Foo {
-+ static func() {
+ static func() {
+- return new Foo_2();
+ return new Foo();
-+ }
+ }
+- };
+- Foo = Foo_2 = __decorate([
+- decorator()
+- ], Foo);
+ }
Foo.func();
}
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff
index 073be92c9f..b2d88f00ca 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorCallGeneric.js.diff
@@ -11,17 +11,13 @@
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
function dec(c) { }
--let C = (() => {
-- let C = class C {
-- static m() { }
-- };
-- C = __decorate([
-- dec
-- ], C);
-- return C;
--})();
+-let C = class C {
+@dec
+class C {
+ _brand;
-+ static m() { }
+ static m() { }
+-};
+-C = __decorate([
+- dec
+-], C);
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff
index 2dc1988295..b3531137d4 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorChecksFunctionBodies.js.diff
@@ -13,25 +13,18 @@
// from #2971
function func(s) {
}
--let A = (() => {
-- class A {
-- m() {
-- }
-+class A {
+ class A {
+- m() {
+- }
+-}
+-__decorate([
+- ((x, p, d) => {
+ @((x, p, d) => {
-+ var a = 3;
-+ func(a);
-+ return d;
-+ })
+ var a = 3;
+ func(a);
+ return d;
+ })
+-], A.prototype, "m", null);
+ m() {
- }
-- __decorate([
-- ((x, p, d) => {
-- var a = 3;
-- func(a);
-- return d;
-- })
-- ], A.prototype, "m", null);
-- return A;
--})();
++ }
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff
index f5ccf42754..8f5e18b058 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorInstantiateModulesInFunctionBodies.js.diff
@@ -11,26 +11,17 @@
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
Object.defineProperty(exports, "__esModule", { value: true });
--var a_1 = require("./a");
-+const a_1 = require("./a");
+ const a_1 = require("./a");
function filter(handler) {
- return function (target, propertyKey) {
- // ...
+@@= skipped -14, +8 lines =@@
};
}
--let Wat = (() => {
-- class Wat {
-- static whatever() {
-- // ...
-- }
-+class Wat {
+ class Wat {
+ @filter(() => a_1.test == 'abc')
-+ static whatever() {
-+ // ...
+ static whatever() {
+ // ...
}
-- __decorate([
-- filter(() => a_1.test == 'abc')
-- ], Wat, "whatever", null);
-- return Wat;
--})();
-+}
\ No newline at end of file
+ }
+-__decorate([
+- filter(() => a_1.test == 'abc')
+-], Wat, "whatever", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff
index 5a35ecf91a..d29122da2c 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata-jsdoc.js.diff
@@ -13,28 +13,23 @@
-var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
--let X = (() => {
-- class X {
-- }
-- __decorate([
-- decorator(),
-- __metadata("design:type", String)
-- ], X.prototype, "a", void 0);
-- __decorate([
-- decorator(),
-- __metadata("design:type", String)
-- ], X.prototype, "b", void 0);
-- __decorate([
-- decorator(),
-- __metadata("design:type", Object)
-- ], X.prototype, "c", void 0);
-- return X;
--})();
-+class X {
+ class X {
+ @decorator()
+ a;
+ @decorator()
+ b;
+ @decorator()
+ c;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- decorator(),
+- __metadata("design:type", String)
+-], X.prototype, "a", void 0);
+-__decorate([
+- decorator(),
+- __metadata("design:type", String)
+-], X.prototype, "b", void 0);
+-__decorate([
+- decorator(),
+- __metadata("design:type", Object)
+-], X.prototype, "c", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff
index 2d34a137e6..32004d5b91 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadata.js.diff
@@ -17,34 +17,26 @@
- return (mod && mod.__esModule) ? mod : { "default": mod };
-};
Object.defineProperty(exports, "__esModule", { value: true });
--var service_1 = __importDefault(require("./service"));
--let MyComponent = (() => {
-- let MyComponent = class MyComponent {
-- constructor(Service) {
-- this.Service = Service;
-- }
-- method(x) {
-- }
-- };
-- __decorate([
-- decorator,
-- __metadata("design:type", Function),
-- __metadata("design:paramtypes", [Object]),
-- __metadata("design:returntype", void 0)
-- ], MyComponent.prototype, "method", null);
-- MyComponent = __decorate([
-- decorator,
-- __metadata("design:paramtypes", [service_1.default])
-- ], MyComponent);
-- return MyComponent;
--})();
+-const service_1 = __importDefault(require("./service"));
+-let MyComponent = class MyComponent {
+@decorator
+class MyComponent {
+ Service;
-+ constructor(Service) {
-+ this.Service = Service;
-+ }
+ constructor(Service) {
+ this.Service = Service;
+ }
+ @decorator
-+ method(x) {
-+ }
+ method(x) {
+ }
+-};
+-__decorate([
+- decorator,
+- __metadata("design:type", Function),
+- __metadata("design:paramtypes", [Object]),
+- __metadata("design:returntype", void 0)
+-], MyComponent.prototype, "method", null);
+-MyComponent = __decorate([
+- decorator,
+- __metadata("design:paramtypes", [service_1.default])
+-], MyComponent);
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff
index 58081e0546..93ca747425 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport.js.diff
@@ -14,33 +14,25 @@
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
Object.defineProperty(exports, "__esModule", { value: true });
--let MyComponent = (() => {
-- let MyComponent = class MyComponent {
-- constructor(Service) {
-- this.Service = Service;
-- }
-- method(x) {
-- }
-- };
-- __decorate([
-- decorator,
-- __metadata("design:type", Function),
-- __metadata("design:paramtypes", [Object]),
-- __metadata("design:returntype", void 0)
-- ], MyComponent.prototype, "method", null);
-- MyComponent = __decorate([
-- decorator,
-- __metadata("design:paramtypes", [Function])
-- ], MyComponent);
-- return MyComponent;
--})();
+-let MyComponent = class MyComponent {
+@decorator
+class MyComponent {
+ Service;
-+ constructor(Service) {
-+ this.Service = Service;
-+ }
+ constructor(Service) {
+ this.Service = Service;
+ }
+ @decorator
-+ method(x) {
-+ }
+ method(x) {
+ }
+-};
+-__decorate([
+- decorator,
+- __metadata("design:type", Function),
+- __metadata("design:paramtypes", [Object]),
+- __metadata("design:returntype", void 0)
+-], MyComponent.prototype, "method", null);
+-MyComponent = __decorate([
+- decorator,
+- __metadata("design:paramtypes", [Function])
+-], MyComponent);
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff
index 17b6594784..e74b30c114 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorMetadataWithTypeOnlyImport2.js.diff
@@ -15,17 +15,12 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Main = void 0;
--let Main = (() => {
-- class Main {
-- }
-- __decorate([
-- decorator(),
-- __metadata("design:type", Function)
-- ], Main.prototype, "field", void 0);
-- return Main;
--})();
-+class Main {
+ class Main {
+ @decorator()
+ field;
-+}
- exports.Main = Main;
\ No newline at end of file
+ }
+ exports.Main = Main;
+-__decorate([
+- decorator(),
+- __metadata("design:type", Function)
+-], Main.prototype, "field", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff
index f2a9840f2e..4f1fae8dbb 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass1.js.diff
@@ -10,14 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- dec
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+-C = __decorate([
+- dec
+-], C);
+@dec
+class C {
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff
index 249db075af..8d0066242b 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass2.js.diff
@@ -12,15 +12,12 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.C = void 0;
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- dec
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+@dec
+class C {
+}
- exports.C = C;
\ No newline at end of file
+ exports.C = C;
+-exports.C = C = __decorate([
+- dec
+-], C);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff
index 7e87afffe2..b42f0fbb50 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass3.js.diff
@@ -12,15 +12,12 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.C = void 0;
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- dec
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+@dec
+class C {
+}
- exports.C = C;
\ No newline at end of file
+ exports.C = C;
+-exports.C = C = __decorate([
+- dec
+-], C);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff
index c6b1696e64..7320044436 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass4.js.diff
@@ -10,14 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- dec()
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+-C = __decorate([
+- dec()
+-], C);
+@dec()
+class C {
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff
index b5347807cb..a3f13b1e8f 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass5.js.diff
@@ -10,14 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- dec()
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+-C = __decorate([
+- dec()
+-], C);
+@dec()
+class C {
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff
index 7387496147..a2ed7b28c3 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass8.js.diff
@@ -10,14 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- let C = class C {
-- };
-- C = __decorate([
-- dec()
-- ], C);
-- return C;
--})();
+-let C = class C {
+-};
+-C = __decorate([
+- dec()
+-], C);
+@dec()
+class C {
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff
index 97c3f2306f..7e9aeb9df4 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClass9.js.diff
@@ -10,28 +10,23 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
+-var B_1;
class A {
}
// https://github.com/Microsoft/TypeScript/issues/16417
--let B = (() => {
-- var B_1;
-- let B = B_1 = class B extends A {
-- m() {
-- return B_1.x;
-- }
-- };
-- B.x = 1;
-- B.y = B_1.x;
-- B = B_1 = __decorate([
-- dec
-- ], B);
-- return B;
--})();
+-let B = B_1 = class B extends A {
+@dec
+class B extends A {
+ static x = 1;
+ static y = B.x;
-+ m() {
+ m() {
+- return B_1.x;
+ return B.x;
-+ }
+ }
+-};
+-B.x = 1;
+-B.y = B_1.x;
+-B = B_1 = __decorate([
+- dec
+-], B);
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff
index c80135eb6c..9e0d1d9ed5 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor1.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- get accessor() { return 1; }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "accessor", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ get accessor() { return 1; }
-+}
\ No newline at end of file
+ get accessor() { return 1; }
+ }
+-__decorate([
+- dec
+-], C.prototype, "accessor", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff
index aba606be47..046c57b72e 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor2.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- get accessor() { return 1; }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "accessor", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ get accessor() { return 1; }
-+}
\ No newline at end of file
+ get accessor() { return 1; }
+ }
+-__decorate([
+- dec
+-], C.prototype, "accessor", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff
index 0fdb569a9c..c268412736 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor3.js.diff
@@ -10,17 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- get accessor() { return 1; }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "accessor", null);
-- return C;
--})();
-+class C {
+ class C {
+ public;
+ @dec
-+ get accessor() { return 1; }
-+}
\ No newline at end of file
+ get accessor() { return 1; }
+ }
+-__decorate([
+- dec
+-], C.prototype, "accessor", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff
index 236a08fb25..82d844f7df 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor4.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- set accessor(value) { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "accessor", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ set accessor(value) { }
-+}
\ No newline at end of file
+ set accessor(value) { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "accessor", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff
index fe1996677b..7764796191 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor5.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- set accessor(value) { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "accessor", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ set accessor(value) { }
-+}
\ No newline at end of file
+ set accessor(value) { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "accessor", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff
index d293a64507..23fe11fc7c 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor6.js.diff
@@ -10,17 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- set accessor(value) { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "accessor", null);
-- return C;
--})();
-+class C {
+ class C {
+ public;
+ @dec
-+ set accessor(value) { }
-+}
\ No newline at end of file
+ set accessor(value) { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "accessor", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff
index 135e7ae81d..f0cfcf4091 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor7.js.diff
@@ -10,95 +10,53 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let A = (() => {
-- class A {
-- get x() { return 0; }
-- set x(value) { }
-- }
-- __decorate([
-- dec1
-- ], A.prototype, "x", null);
-- return A;
--})();
--let B = (() => {
-- class B {
-- get x() { return 0; }
-- set x(value) { }
-- }
-- __decorate([
-- dec2
-- ], B.prototype, "x", null);
-- return B;
--})();
--let C = (() => {
-- class C {
-- set x(value) { }
-- get x() { return 0; }
-- }
-- __decorate([
-- dec1
-- ], C.prototype, "x", null);
-- return C;
--})();
--let D = (() => {
-- class D {
-- set x(value) { }
-- get x() { return 0; }
-- }
-- __decorate([
-- dec2
-- ], D.prototype, "x", null);
-- return D;
--})();
--let E = (() => {
-- class E {
-- get x() { return 0; }
-- set x(value) { }
-- }
-- __decorate([
-- dec1
-- ], E.prototype, "x", null);
-- return E;
--})();
--let F = (() => {
-- class F {
-- set x(value) { }
-- get x() { return 0; }
-- }
-- __decorate([
-- dec1
-- ], F.prototype, "x", null);
-- return F;
--})();
-+class A {
+ class A {
+ @dec1
-+ get x() { return 0; }
-+ set x(value) { }
-+}
-+class B {
-+ get x() { return 0; }
+ get x() { return 0; }
+ set x(value) { }
+ }
+-__decorate([
+- dec1
+-], A.prototype, "x", null);
+ class B {
+ get x() { return 0; }
+ @dec2
-+ set x(value) { }
-+}
-+class C {
+ set x(value) { }
+ }
+-__decorate([
+- dec2
+-], B.prototype, "x", null);
+ class C {
+ @dec1
-+ set x(value) { }
-+ get x() { return 0; }
-+}
-+class D {
-+ set x(value) { }
+ set x(value) { }
+ get x() { return 0; }
+ }
+-__decorate([
+- dec1
+-], C.prototype, "x", null);
+ class D {
+ set x(value) { }
+ @dec2
-+ get x() { return 0; }
-+}
-+class E {
+ get x() { return 0; }
+ }
+-__decorate([
+- dec2
+-], D.prototype, "x", null);
+ class E {
+ @dec1
-+ get x() { return 0; }
+ get x() { return 0; }
+ @dec2
-+ set x(value) { }
-+}
-+class F {
+ set x(value) { }
+ }
+-__decorate([
+- dec1
+-], E.prototype, "x", null);
+ class F {
+ @dec1
-+ set x(value) { }
+ set x(value) { }
+ @dec2
-+ get x() { return 0; }
-+}
\ No newline at end of file
+ get x() { return 0; }
+ }
+-__decorate([
+- dec1
+-], F.prototype, "x", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff
index 774fead849..71968ac8ff 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassAccessor8.js.diff
@@ -13,101 +13,61 @@
-var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
--let A = (() => {
-- class A {
-- get x() { return 0; }
-- set x(value) { }
-- }
-- __decorate([
-- dec,
-- __metadata("design:type", Number),
-- __metadata("design:paramtypes", [Number])
-- ], A.prototype, "x", null);
-- return A;
--})();
--let B = (() => {
-- class B {
-- get x() { return 0; }
-- set x(value) { }
-- }
-- __decorate([
-- dec,
-- __metadata("design:type", Number),
-- __metadata("design:paramtypes", [Number])
-- ], B.prototype, "x", null);
-- return B;
--})();
--let C = (() => {
-- class C {
-- set x(value) { }
-- get x() { return 0; }
-- }
-- __decorate([
-- dec,
-- __metadata("design:type", Number),
-- __metadata("design:paramtypes", [Number])
-- ], C.prototype, "x", null);
-- return C;
--})();
--let D = (() => {
-- class D {
-- set x(value) { }
-- get x() { return 0; }
-- }
-- __decorate([
-- dec,
-- __metadata("design:type", Number),
-- __metadata("design:paramtypes", [Number])
-- ], D.prototype, "x", null);
-- return D;
--})();
--let E = (() => {
-- class E {
-- get x() { return 0; }
-- }
-- __decorate([
-- dec,
-- __metadata("design:type", Object),
-- __metadata("design:paramtypes", [])
-- ], E.prototype, "x", null);
-- return E;
--})();
--let F = (() => {
-- class F {
-- set x(value) { }
-- }
-- __decorate([
-- dec,
-- __metadata("design:type", Number),
-- __metadata("design:paramtypes", [Number])
-- ], F.prototype, "x", null);
-- return F;
--})();
-+class A {
+ class A {
+ @dec
-+ get x() { return 0; }
-+ set x(value) { }
-+}
-+class B {
-+ get x() { return 0; }
+ get x() { return 0; }
+ set x(value) { }
+ }
+-__decorate([
+- dec,
+- __metadata("design:type", Number),
+- __metadata("design:paramtypes", [Number])
+-], A.prototype, "x", null);
+ class B {
+ get x() { return 0; }
+ @dec
-+ set x(value) { }
-+}
-+class C {
+ set x(value) { }
+ }
+-__decorate([
+- dec,
+- __metadata("design:type", Number),
+- __metadata("design:paramtypes", [Number])
+-], B.prototype, "x", null);
+ class C {
+ @dec
-+ set x(value) { }
-+ get x() { return 0; }
-+}
-+class D {
-+ set x(value) { }
+ set x(value) { }
+ get x() { return 0; }
+ }
+-__decorate([
+- dec,
+- __metadata("design:type", Number),
+- __metadata("design:paramtypes", [Number])
+-], C.prototype, "x", null);
+ class D {
+ set x(value) { }
+ @dec
-+ get x() { return 0; }
-+}
-+class E {
+ get x() { return 0; }
+ }
+-__decorate([
+- dec,
+- __metadata("design:type", Number),
+- __metadata("design:paramtypes", [Number])
+-], D.prototype, "x", null);
+ class E {
+ @dec
-+ get x() { return 0; }
-+}
-+class F {
+ get x() { return 0; }
+ }
+-__decorate([
+- dec,
+- __metadata("design:type", Object),
+- __metadata("design:paramtypes", [])
+-], E.prototype, "x", null);
+ class F {
+ @dec
-+ set x(value) { }
-+}
\ No newline at end of file
+ set x(value) { }
+ }
+-__decorate([
+- dec,
+- __metadata("design:type", Number),
+- __metadata("design:paramtypes", [Number])
+-], F.prototype, "x", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff
index 83d945a9a9..7ef0e732dd 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor2.js.diff
@@ -15,24 +15,16 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.C = void 0;
--var _0_ts_1 = require("./0.ts");
--var _0_ts_2 = require("./0.ts");
--let C = (() => {
-- let C = class C extends _0_ts_1.base {
-- constructor(prop) {
-- super();
-- }
-- };
-- C = __decorate([
-- __param(0, _0_ts_2.foo)
-- ], C);
-- return C;
--})();
-+const _0_ts_1 = require("./0.ts");
-+const _0_ts_2 = require("./0.ts");
+ const _0_ts_1 = require("./0.ts");
+ const _0_ts_2 = require("./0.ts");
+-let C = class C extends _0_ts_1.base {
+class C extends _0_ts_1.base {
-+ constructor(prop) {
-+ super();
-+ }
+ constructor(prop) {
+ super();
+ }
+-};
+}
- exports.C = C;
\ No newline at end of file
+ exports.C = C;
+-exports.C = C = __decorate([
+- __param(0, _0_ts_2.foo)
+-], C);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff
index 87f903bfa2..1c016adbb6 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor3.js.diff
@@ -15,25 +15,17 @@
-};
Object.defineProperty(exports, "__esModule", { value: true });
exports.C = void 0;
--var _0_1 = require("./0");
--var _0_2 = require("./0");
-+const _0_1 = require("./0");
-+const _0_2 = require("./0");
+ const _0_1 = require("./0");
+ const _0_2 = require("./0");
/* Comment on the Class Declaration */
--let C = (() => {
-- let C = class C extends _0_1.base {
-- constructor(prop) {
-- super();
-- }
-- };
-- C = __decorate([
-- __param(0, _0_2.foo)
-- ], C);
-- return C;
--})();
+-let C = class C extends _0_1.base {
+class C extends _0_1.base {
-+ constructor(prop) {
-+ super();
-+ }
+ constructor(prop) {
+ super();
+ }
+-};
+}
- exports.C = C;
\ No newline at end of file
+ exports.C = C;
+-exports.C = C = __decorate([
+- __param(0, _0_2.foo)
+-], C);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff
index 5bcfb28d26..0eacc39dfb 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructor4.js.diff
@@ -13,38 +13,28 @@
-var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
--let A = (() => {
-- let A = class A {
-- };
-- A = __decorate([
-- dec
-- ], A);
-- return A;
--})();
--let B = (() => {
-- let B = class B {
-- constructor(x) { }
-- };
-- B = __decorate([
-- dec,
-- __metadata("design:paramtypes", [Number])
-- ], B);
-- return B;
--})();
--let C = (() => {
-- let C = class C extends A {
-- };
-- C = __decorate([
-- dec
-- ], C);
-- return C;
--})();
+-let A = class A {
+-};
+-A = __decorate([
+- dec
+-], A);
+-let B = class B {
+@dec
+class A {
+}
+@dec
+class B {
-+ constructor(x) { }
+ constructor(x) { }
+-};
+-B = __decorate([
+- dec,
+- __metadata("design:paramtypes", [Number])
+-], B);
+-let C = class C extends A {
+-};
+-C = __decorate([
+- dec
+-], C);
+}
+@dec
+class C extends A {
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff
index 722b033654..afcd3a66b9 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter1.js.diff
@@ -13,15 +13,11 @@
-var __param = (this && this.__param) || function (paramIndex, decorator) {
- return function (target, key) { decorator(target, key, paramIndex); }
-};
--let C = (() => {
-- let C = class C {
-- constructor(p) { }
-- };
-- C = __decorate([
-- __param(0, dec)
-- ], C);
-- return C;
--})();
+-let C = class C {
+class C {
-+ constructor(p) { }
+ constructor(p) { }
+-};
+-C = __decorate([
+- __param(0, dec)
+-], C);
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff
index f793a2ac37..88a98dece1 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassConstructorParameter4.js.diff
@@ -13,15 +13,11 @@
-var __param = (this && this.__param) || function (paramIndex, decorator) {
- return function (target, key) { decorator(target, key, paramIndex); }
-};
--let C = (() => {
-- let C = class C {
-- constructor(public, p) { }
-- };
-- C = __decorate([
-- __param(1, dec)
-- ], C);
-- return C;
--})();
+-let C = class C {
+class C {
-+ constructor(public, p) { }
+ constructor(public, p) { }
+-};
+-C = __decorate([
+- __param(1, dec)
+-], C);
+}
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff
index 9a7ecb850b..08ece11d24 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod1.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- method() { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ method() { }
-+}
\ No newline at end of file
+ method() { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff
index 06d9d6e355..04a8e3112e 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod10.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- method() { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ method() { }
-+}
\ No newline at end of file
+ method() { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff
index def840c6c7..7e3ed70f92 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod11.js.diff
@@ -12,19 +12,12 @@
-};
var M;
(function (M) {
-- let C = (() => {
-- class C {
-- decorator(target, key) { }
-- method() { }
-- }
-- __decorate([
-- (this.decorator)
-- ], C.prototype, "method", null);
-- return C;
-- })();
-+ class C {
-+ decorator(target, key) { }
+ class C {
+ decorator(target, key) { }
+ @(this.decorator)
-+ method() { }
-+ }
+ method() { }
+ }
+- __decorate([
+- (this.decorator)
+- ], C.prototype, "method", null);
})(M || (M = {}));
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff
index d4e9a30c5b..51aa8f8d94 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod12.js.diff
@@ -15,17 +15,11 @@
class S {
decorator(target, key) { }
}
-- let C = (() => {
-- class C extends S {
-- method() { }
-- }
-- __decorate([
-- (super.decorator)
-- ], C.prototype, "method", null);
-- return C;
-- })();
-+ class C extends S {
+ class C extends S {
+ @(super.decorator)
-+ method() { }
-+ }
+ method() { }
+ }
+- __decorate([
+- (super.decorator)
+- ], C.prototype, "method", null);
})(M || (M = {}));
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff
index 17d34bc117..31cc2d9a47 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod2.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- method() { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ method() { }
-+}
\ No newline at end of file
+ method() { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff
index 6d884820ee..b15836bff3 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod3.js.diff
@@ -10,17 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- method() { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
+ class C {
+ public;
+ @dec
-+ method() { }
-+}
\ No newline at end of file
+ method() { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff
index 405d6ae694..88f81bd6fc 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod8.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- method() { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ method() { }
-+}
\ No newline at end of file
+ method() { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff
index 6b52333d77..5ba85df626 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodOverload2.js.diff
@@ -10,16 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- method() { }
-- }
-- __decorate([
-- dec
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
-+ method() { }
-+}
\ No newline at end of file
+ method() { }
+ }
+-__decorate([
+- dec
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff
index cc475a2c38..4e2f3f7d6d 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter1.js.diff
@@ -13,15 +13,9 @@
-var __param = (this && this.__param) || function (paramIndex, decorator) {
- return function (target, key) { decorator(target, key, paramIndex); }
-};
--let C = (() => {
-- class C {
-- method(p) { }
-- }
-- __decorate([
-- __param(0, dec)
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
-+ method(p) { }
-+}
\ No newline at end of file
+ class C {
+ method(p) { }
+ }
+-__decorate([
+- __param(0, dec)
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff
index c072c40a65..4c211acff0 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodParameter2.js.diff
@@ -13,15 +13,9 @@
-var __param = (this && this.__param) || function (paramIndex, decorator) {
- return function (target, key) { decorator(target, key, paramIndex); }
-};
--let C = (() => {
-- class C {
-- method(p) { }
-- }
-- __decorate([
-- __param(0, dec)
-- ], C.prototype, "method", null);
-- return C;
--})();
-+class C {
-+ method(p) { }
-+}
\ No newline at end of file
+ class C {
+ method(p) { }
+ }
+-__decorate([
+- __param(0, dec)
+-], C.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff
index 7b7995f68c..f4ed3ff3b5 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethodThisParameter.js.diff
@@ -16,15 +16,9 @@
class C {
method() { }
}
--let C2 = (() => {
-- class C2 {
-- method(allowed) { }
-- }
-- __decorate([
-- __param(0, dec)
-- ], C2.prototype, "method", null);
-- return C2;
--})();
-+class C2 {
-+ method(allowed) { }
-+}
\ No newline at end of file
+ class C2 {
+ method(allowed) { }
+ }
+-__decorate([
+- __param(0, dec)
+-], C2.prototype, "method", null);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff
index 10fda8fd22..488ed54f91 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty1.js.diff
@@ -10,15 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff
index db7b94f909..5acca3027e 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty10.js.diff
@@ -10,15 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec()
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ @dec()
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec()
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff
index 19dba33461..a4293943b7 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty11.js.diff
@@ -10,15 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff
index d7b5870497..3997cf7a3b 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty12.js.diff
@@ -13,16 +13,11 @@
-var __metadata = (this && this.__metadata) || function (k, v) {
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
-};
--let A = (() => {
-- class A {
-- }
-- __decorate([
-- dec(),
-- __metadata("design:type", String)
-- ], A.prototype, "foo", void 0);
-- return A;
--})();
-+class A {
+ class A {
+ @dec()
+ foo;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec(),
+- __metadata("design:type", String)
+-], A.prototype, "foo", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff
index 92490e211c..85a5313c91 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty2.js.diff
@@ -10,15 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff
index b48e2fd9a7..f01ee48335 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty3.js.diff
@@ -10,16 +10,11 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ public;
+ @dec
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff
index fe3607664c..02a0067d10 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty6.js.diff
@@ -10,15 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff
index 91e6fb9d39..3576a2a766 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassProperty7.js.diff
@@ -10,15 +10,10 @@
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
- return c > 3 && r && Object.defineProperty(target, key, r), r;
-};
--let C = (() => {
-- class C {
-- }
-- __decorate([
-- dec
-- ], C.prototype, "prop", void 0);
-- return C;
--})();
-+class C {
+ class C {
+ @dec
+ prop;
-+}
\ No newline at end of file
+ }
+-__decorate([
+- dec
+-], C.prototype, "prop", void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff
deleted file mode 100644
index 814a926d09..0000000000
--- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge01.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.defaultExportsCannotMerge01.js
-+++ new.defaultExportsCannotMerge01.js
-@@= skipped -45, +45 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var m1_1 = __importDefault(require("m1"));
-+const m1_1 = __importDefault(require("m1"));
- (0, m1_1.default)();
- var x;
- var y;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff
deleted file mode 100644
index 8f01b23170..0000000000
--- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge02.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.defaultExportsCannotMerge02.js
-+++ new.defaultExportsCannotMerge02.js
-@@= skipped -35, +35 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var m1_1 = __importDefault(require("m1"));
-+const m1_1 = __importDefault(require("m1"));
- (0, m1_1.default)();
- var x;
- var y;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff b/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff
deleted file mode 100644
index 21c1332789..0000000000
--- a/testdata/baselines/reference/submodule/conformance/defaultExportsCannotMerge03.js.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.defaultExportsCannotMerge03.js
-+++ new.defaultExportsCannotMerge03.js
-@@= skipped -35, +35 lines =@@
- return (mod && mod.__esModule) ? mod : { "default": mod };
- };
- Object.defineProperty(exports, "__esModule", { value: true });
--var m1_1 = __importDefault(require("m1"));
-+const m1_1 = __importDefault(require("m1"));
- (0, m1_1.default)();
- var x;
- var y;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff b/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff
index 86fe018540..d9a651cfe6 100644
--- a/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/derivedClassSuperProperties.js.diff
@@ -97,14 +97,11 @@
class DerivedWithDecoratorOnClass extends Base {
+ prop = true;
constructor() {
-- let InnerClass = (() => {
-- let InnerClass = class InnerClass {
-- };
-- InnerClass = __decorate([
-- decorate(this)
-- ], InnerClass);
-- return InnerClass;
-- })();
+- let InnerClass = class InnerClass {
+- };
+- InnerClass = __decorate([
+- decorate(this)
+- ], InnerClass);
+ @decorate(this)
+ class InnerClass {
+ }
@@ -115,19 +112,13 @@
class DerivedWithDecoratorOnClassMethod extends Base {
+ prop = true;
constructor() {
-- let InnerClass = (() => {
-- class InnerClass {
-- innerMethod() { }
-- }
-- __decorate([
-- decorate(this)
-- ], InnerClass.prototype, "innerMethod", null);
-- return InnerClass;
-- })();
-+ class InnerClass {
+ class InnerClass {
+ @decorate(this)
-+ innerMethod() { }
-+ }
+ innerMethod() { }
+ }
+- __decorate([
+- decorate(this)
+- ], InnerClass.prototype, "innerMethod", null);
super();
- this.prop = true;
}
@@ -135,21 +126,16 @@
class DerivedWithDecoratorOnClassProperty extends Base {
+ prop = true;
constructor() {
-- let InnerClass = (() => {
-- class InnerClass {
-- constructor() {
-- this.innerProp = true;
-- }
+ class InnerClass {
+- constructor() {
+- this.innerProp = true;
- }
-- __decorate([
-- decorate(this)
-- ], InnerClass.prototype, "innerProp", void 0);
-- return InnerClass;
-- })();
-+ class InnerClass {
+ @decorate(this)
+ innerProp = true;
-+ }
+ }
+- __decorate([
+- decorate(this)
+- ], InnerClass.prototype, "innerProp", void 0);
super();
- this.prop = true;
}
@@ -297,7 +283,7 @@
constructor() {
console.log(new class extends Base {
constructor() {
-@@= skipped -255, +233 lines =@@
+@@= skipped -246, +233 lines =@@
}
}());
super();
diff --git a/testdata/baselines/reference/submodule/conformance/destructuringSpread.js b/testdata/baselines/reference/submodule/conformance/destructuringSpread.js
index c27b19a244..709cc971e5 100644
--- a/testdata/baselines/reference/submodule/conformance/destructuringSpread.js
+++ b/testdata/baselines/reference/submodule/conformance/destructuringSpread.js
@@ -31,20 +31,9 @@ const { c, d, e, f, g } = {
//// [destructuringSpread.js]
-var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
-};
-const { x } = __assign({}, { x: 0 });
-const { y } = __assign({ y: 0 }, {});
-const { z, a, b } = __assign({ z: 0 }, { a: 0, b: 0 });
-const { c, d, e, f, g } = __assign(__assign({}, __assign(__assign({}, __assign({
+const { x } = Object.assign({}, { x: 0 });
+const { y } = Object.assign({ y: 0 }, {});
+const { z, a, b } = Object.assign({ z: 0 }, { a: 0, b: 0 });
+const { c, d, e, f, g } = Object.assign(Object.assign({}, Object.assign(Object.assign({}, Object.assign({
c: 0,
}, { d: 0 })), { e: 0 })), { f: 0 });
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.errors.txt b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.errors.txt
new file mode 100644
index 0000000000..94d9dbd86b
--- /dev/null
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.errors.txt
@@ -0,0 +1,40 @@
+emitArrowFunctionWhenUsingArguments01.ts(2,15): error TS2304: Cannot find name 'arguments'.
+emitArrowFunctionWhenUsingArguments01.ts(19,15): error TS2304: Cannot find name 'arguments'.
+
+
+==== emitArrowFunctionWhenUsingArguments01.ts (2 errors) ====
+ var a = () => {
+ var arg = arguments[0]; // error
+ ~~~~~~~~~
+!!! error TS2304: Cannot find name 'arguments'.
+ }
+
+ var b = function () {
+ var a = () => {
+ var arg = arguments[0]; // error
+ }
+ }
+
+ function baz() {
+ () => {
+ var arg = arguments[0];
+ }
+ }
+
+ function foo(inputFunc: () => void) { }
+ foo(() => {
+ var arg = arguments[0]; // error
+ ~~~~~~~~~
+!!! error TS2304: Cannot find name 'arguments'.
+ });
+
+ function bar() {
+ var arg = arguments[0]; // no error
+ }
+
+
+ () => {
+ function foo() {
+ var arg = arguments[0]; // no error
+ }
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.errors.txt.diff
deleted file mode 100644
index a340d2332b..0000000000
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.errors.txt.diff
+++ /dev/null
@@ -1,50 +0,0 @@
---- old.emitArrowFunctionWhenUsingArguments01.errors.txt
-+++ new.emitArrowFunctionWhenUsingArguments01.errors.txt
-@@= skipped -0, +0 lines =@@
--emitArrowFunctionWhenUsingArguments01.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--emitArrowFunctionWhenUsingArguments01.ts(7,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--emitArrowFunctionWhenUsingArguments01.ts(13,13): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--emitArrowFunctionWhenUsingArguments01.ts(19,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--
--
--==== emitArrowFunctionWhenUsingArguments01.ts (4 errors) ====
-- var a = () => {
-- var arg = arguments[0]; // error
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- }
--
-- var b = function () {
-- var a = () => {
-- var arg = arguments[0]; // error
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- }
-- }
--
-- function baz() {
-- () => {
-- var arg = arguments[0];
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- }
-- }
--
-- function foo(inputFunc: () => void) { }
-- foo(() => {
-- var arg = arguments[0]; // error
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- });
--
-- function bar() {
-- var arg = arguments[0]; // no error
-- }
--
--
-- () => {
-- function foo() {
-- var arg = arguments[0]; // no error
-- }
-- }
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.symbols b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.symbols
index 56b61fc422..57738e4230 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.symbols
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.symbols
@@ -6,7 +6,6 @@ var a = () => {
var arg = arguments[0]; // error
>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 1, 7))
->arguments : Symbol(arguments)
}
var b = function () {
@@ -40,7 +39,6 @@ foo(() => {
var arg = arguments[0]; // error
>arg : Symbol(arg, Decl(emitArrowFunctionWhenUsingArguments01.ts, 18, 7))
->arguments : Symbol(arguments)
});
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.types b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.types
index a4a6e28d8e..6860b5ac46 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.types
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments01.types
@@ -8,7 +8,7 @@ var a = () => {
var arg = arguments[0]; // error
>arg : any
>arguments[0] : any
->arguments : IArguments
+>arguments : any
>0 : 0
}
@@ -54,7 +54,7 @@ foo(() => {
var arg = arguments[0]; // error
>arg : any
>arguments[0] : any
->arguments : IArguments
+>arguments : any
>0 : 0
});
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.errors.txt b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.errors.txt
new file mode 100644
index 0000000000..cf09790eb8
--- /dev/null
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.errors.txt
@@ -0,0 +1,7 @@
+emitArrowFunctionWhenUsingArguments02.ts(1,15): error TS2304: Cannot find name 'arguments'.
+
+
+==== emitArrowFunctionWhenUsingArguments02.ts (1 errors) ====
+ var a = () => arguments;
+ ~~~~~~~~~
+!!! error TS2304: Cannot find name 'arguments'.
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.errors.txt.diff
deleted file mode 100644
index 15d8c38f28..0000000000
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.errors.txt.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- old.emitArrowFunctionWhenUsingArguments02.errors.txt
-+++ new.emitArrowFunctionWhenUsingArguments02.errors.txt
-@@= skipped -0, +0 lines =@@
--emitArrowFunctionWhenUsingArguments02.ts(1,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--
--
--==== emitArrowFunctionWhenUsingArguments02.ts (1 errors) ====
-- var a = () => arguments;
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.symbols b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.symbols
index bc6ada7030..525d7f19a9 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.symbols
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.symbols
@@ -3,5 +3,4 @@
=== emitArrowFunctionWhenUsingArguments02.ts ===
var a = () => arguments;
>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments02.ts, 0, 3))
->arguments : Symbol(arguments)
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.types b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.types
index 9742c6abe0..503a44a638 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.types
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments02.types
@@ -2,7 +2,7 @@
=== emitArrowFunctionWhenUsingArguments02.ts ===
var a = () => arguments;
->a : () => IArguments
->() => arguments : () => IArguments
->arguments : IArguments
+>a : () => any
+>() => arguments : () => any
+>arguments : any
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.errors.txt.diff
deleted file mode 100644
index 8014273cf1..0000000000
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.errors.txt.diff
+++ /dev/null
@@ -1,12 +0,0 @@
---- old.emitArrowFunctionWhenUsingArguments03.errors.txt
-+++ new.emitArrowFunctionWhenUsingArguments03.errors.txt
-@@= skipped -0, +0 lines =@@
--emitArrowFunctionWhenUsingArguments03.ts(2,15): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--
--
--==== emitArrowFunctionWhenUsingArguments03.ts (1 errors) ====
-- var arguments;
-- var a = () => arguments;
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.symbols b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.symbols
index 330ee37898..e54b9ef5bd 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.symbols
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.symbols
@@ -6,5 +6,5 @@ var arguments;
var a = () => arguments;
>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments03.ts, 1, 3))
->arguments : Symbol(arguments)
+>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments03.ts, 0, 3))
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.types b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.types
index c1c3244aa0..3edb5f2d64 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.types
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments03.types
@@ -5,7 +5,7 @@ var arguments;
>arguments : any
var a = () => arguments;
->a : () => IArguments
->() => arguments : () => IArguments
->arguments : IArguments
+>a : () => any
+>() => arguments : () => any
+>arguments : any
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.errors.txt.diff
deleted file mode 100644
index e361e55bcb..0000000000
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.errors.txt.diff
+++ /dev/null
@@ -1,14 +0,0 @@
---- old.emitArrowFunctionWhenUsingArguments04.errors.txt
-+++ new.emitArrowFunctionWhenUsingArguments04.errors.txt
-@@= skipped -0, +0 lines =@@
--emitArrowFunctionWhenUsingArguments04.ts(3,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--
--
--==== emitArrowFunctionWhenUsingArguments04.ts (1 errors) ====
-- function f() {
-- var arguments;
-- var a = () => arguments;
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- }
-+
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.symbols b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.symbols
index ed04a6c54c..1b2fc7cf3f 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.symbols
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.symbols
@@ -9,5 +9,5 @@ function f() {
var a = () => arguments;
>a : Symbol(a, Decl(emitArrowFunctionWhenUsingArguments04.ts, 2, 7))
->arguments : Symbol(arguments)
+>arguments : Symbol(arguments, Decl(emitArrowFunctionWhenUsingArguments04.ts, 1, 7))
}
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.types b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.types
index 13151e624a..8019da8859 100644
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.types
+++ b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments04.types
@@ -8,7 +8,7 @@ function f() {
>arguments : any
var a = () => arguments;
->a : () => IArguments
->() => arguments : () => IArguments
->arguments : IArguments
+>a : () => any
+>() => arguments : () => any
+>arguments : any
}
diff --git a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments05.errors.txt.diff b/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments05.errors.txt.diff
deleted file mode 100644
index 2c0422a7bd..0000000000
--- a/testdata/baselines/reference/submodule/conformance/emitArrowFunctionWhenUsingArguments05.errors.txt.diff
+++ /dev/null
@@ -1,13 +0,0 @@
---- old.emitArrowFunctionWhenUsingArguments05.errors.txt
-+++ new.emitArrowFunctionWhenUsingArguments05.errors.txt
-@@= skipped -0, +0 lines =@@
--emitArrowFunctionWhenUsingArguments05.ts(2,19): error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
--
--
--==== emitArrowFunctionWhenUsingArguments05.ts (1 errors) ====
-- function f(arguments) {
-- var a = () => arguments;
-- ~~~~~~~~~
--!!! error TS2496: The 'arguments' object cannot be referenced in an arrow function in ES5. Consider using a standard function expression.
-- }
-+