Update default target from ES3 to ES5 (#51731)

* Change the default emit target to ES5

* Add baseline update

* Remove tests with a hardcoded sourcemap in it

* Update hardcoded tests

* Merge with main

* Restore tests
This commit is contained in:
Ryan Cavanaugh authored and GitHub committed 2022-12-08 16:43:47 -08:00
1 parent 3716ffe748
commit a3dbe7dc70
2983 files changed
+10122 -12098

No files matched your search

+2 -2
View File
@@ -7514,11 +7514,11 @@ export function getSetExternalModuleIndicator(options: CompilerOptions): (file:
}
/** @internal */
export function getEmitScriptTarget(compilerOptions: {module?: CompilerOptions["module"], target?: CompilerOptions["target"]}) {
export function getEmitScriptTarget(compilerOptions: {module?: CompilerOptions["module"], target?: CompilerOptions["target"]}): ScriptTarget {
return compilerOptions.target ||
(compilerOptions.module === ModuleKind.Node16 && ScriptTarget.ES2022) ||
(compilerOptions.module === ModuleKind.NodeNext && ScriptTarget.ESNext) ||
ScriptTarget.ES3;
ScriptTarget.ES5;
}
/** @internal */
+1 -1
View File
@@ -33,4 +33,4 @@ import tsserverlibraryInternal = require("tsserverlibrary-internal");
//// [index.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
+2 -2
View File
@@ -90,12 +90,12 @@ watchMain();
* at: https://github.com/Microsoft/TypeScript-wiki/blob/master/Using-the-Compiler-API.md#writing-an-incremental-program-watcher
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");
var formatHost = {
getCanonicalFileName: function (path) { return path; },
getCurrentDirectory: ts.sys.getCurrentDirectory,
getNewLine: function () { return ts.sys.newLine; }
getNewLine: function () { return ts.sys.newLine; },
};
function watchMain() {
var configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json");
@@ -62,7 +62,7 @@ watchMain();
* Note: This test is a public API sample. This uses default sys interface without having to pass anything
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");
function watchMain() {
var configPath = ts.findConfigFile(/*searchPath*/ "./", ts.sys.fileExists, "tsconfig.json");
@@ -69,7 +69,7 @@ watchMain();
* Note: This test is a public API sample. This sample verifies creating abstract builder to watch list of root files
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");
function watchMain() {
// get list of files and compiler options somehow
@@ -53,7 +53,7 @@ compile(process.argv.slice(2), {
* at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.compile = void 0;
var ts = require("typescript");
function compile(fileNames, options) {
+1 -1
View File
@@ -129,7 +129,7 @@ function getSomeOtherTags(node: ts.Node) {
* https://github.com/vega/ts-json-schema-generator
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");
// excerpted from https://github.com/YousefED/typescript-json-schema
// (converted from a method and modified; for example, `this: any` to compensate, among other changes)
@@ -79,7 +79,7 @@ fileNames.forEach(fileName => {
* at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#traversing-the-ast-with-a-little-linter
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.delint = void 0;
var ts = require("typescript");
function delint(sourceFile) {
@@ -51,7 +51,7 @@ export function createProgram(rootFiles: string[], compilerOptionsJson: string):
* at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-minimal-compiler
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createProgram = void 0;
var ts = require("typescript");
function printError(error) {
@@ -31,7 +31,7 @@ console.log(JSON.stringify(result));
* at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#a-simple-transform-function
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");
var source = "let x: string = 'string'";
var result = ts.transpile(source, { module: ts.ModuleKind.CommonJS });
@@ -126,7 +126,7 @@ watch(currentDirectoryFiles, { module: ts.ModuleKind.CommonJS });
* at: https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API#incremental-build-support-using-the-language-services
* Please log a "breaking change" issue for any API breaking change affecting this issue
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("typescript");
function watch(rootFileNames, options) {
var files = {};
@@ -148,7 +148,7 @@ function watch(rootFileNames, options) {
getCompilationSettings: function () { return options; },
getDefaultLibFileName: function (options) { return ts.getDefaultLibFilePath(options); },
fileExists: function (fileName) { return fs.existsSync(fileName); },
readFile: function (fileName) { return fs.readFileSync(fileName); }
readFile: function (fileName) { return fs.readFileSync(fileName); },
};
// Create the language service files
var services = ts.createLanguageService(servicesHost, ts.createDocumentRegistry());
@@ -6,7 +6,7 @@ export interface I {
//// [DeclarationErrorsNoEmitOnError.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [DeclarationErrorsNoEmitOnError.d.ts]
@@ -1,7 +0,0 @@
tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts(1,15): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts (1 errors) ====
for (var v of "") { }
~~
!!! error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
@@ -1,8 +0,0 @@
tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts(2,17): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
==== tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts (1 errors) ====
var union: string | string[];
for (const v of union) { }
~~~~~
!!! error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
+1 -1
View File
@@ -25,7 +25,7 @@ try {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
+1 -1
View File
@@ -1,3 +1,3 @@
//// [ES5For-of33.js.map]
{"version":3,"file":"ES5For-of33.js","sourceRoot":"","sources":["ES5For-of33.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAAA,KAAc,IAAA,KAAA,SAAA,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA,gBAAA,4BAAE;QAA1B,IAAI,CAAC,WAAA;QACN,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAClB"}
//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9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yLW9mMzMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQUEsS0FBYyxJQUFBLEtBQUEsU0FBQSxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUEsZ0JBQUEsNEJBQUU7UUFBMUIsSUFBSSxDQUFDLFdBQUE7UUFDTixPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxDQUFDO0tBQ2xCIn0=,Zm9yICh2YXIgdiBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIGNvbnNvbGUubG9nKHYpOwp9
@@ -119,7 +119,7 @@ sourceFile:ES5For-of33.ts
>>>catch (e_1_1) { e_1 = { error: e_1_1 }; }
>>>finally {
>>> try {
>>> if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
>>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
>>> }
>>> finally { if (e_1) throw e_1.error; }
>>>}
+1 -1
View File
@@ -31,7 +31,7 @@ try {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
+1 -1
View File
@@ -1,3 +1,3 @@
//// [ES5For-of34.js.map]
{"version":3,"file":"ES5For-of34.js","sourceRoot":"","sources":["ES5For-of34.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,SAAS,GAAG;IACR,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACpB,CAAC;;IACD,KAAgB,IAAA,KAAA,SAAA,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA,gBAAA,4BAAE;QAA5B,GAAG,EAAE,CAAC,CAAC,WAAA;QACR,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC;KACnB"}
//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLiIpOw0KfTsNCnZhciBlXzEsIF9hOw0KZnVuY3Rpb24gZm9vKCkgew0KICAgIHJldHVybiB7IHg6IDAgfTsNCn0NCnRyeSB7DQogICAgZm9yICh2YXIgX2IgPSBfX3ZhbHVlcyhbJ2EnLCAnYicsICdjJ10pLCBfYyA9IF9iLm5leHQoKTsgIV9jLmRvbmU7IF9jID0gX2IubmV4dCgpKSB7DQogICAgICAgIGZvbygpLnggPSBfYy52YWx1ZTsNCiAgICAgICAgdmFyIHAgPSBmb28oKS54Ow0KICAgIH0NCn0NCmNhdGNoIChlXzFfMSkgeyBlXzEgPSB7IGVycm9yOiBlXzFfMSB9OyB9DQpmaW5hbGx5IHsNCiAgICB0cnkg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CJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxTQUFTLEdBQUc7SUFDUixPQUFPLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDO0FBQ3BCLENBQUM7O0lBQ0QsS0FBZ0IsSUFBQSxLQUFBLFNBQUEsQ0FBQyxHQUFHLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO1FBQTVCLEdBQUcsRUFBRSxDQUFDLENBQUMsV0FBQTtRQUNSLElBQUksQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQztLQUNuQiJ9,ZnVuY3Rpb24gZm9vKCkgewogICAgcmV0dXJuIHsgeDogMCB9Owp9CmZvciAoZm9vKCkueCBvZiBbJ2EnLCAnYicsICdjJ10pIHsKICAgIHZhciBwID0gZm9vKCkueDsKfQ==
@@ -178,7 +178,7 @@ sourceFile:ES5For-of34.ts
>>>catch (e_1_1) { e_1 = { error: e_1_1 }; }
>>>finally {
>>> try {
>>> if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
>>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
>>> }
>>> finally { if (e_1) throw e_1.error; }
>>>}
+1 -1
View File
@@ -27,7 +27,7 @@ try {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
+1 -1
View File
@@ -1,3 +1,3 @@
//// [ES5For-of35.js.map]
{"version":3,"file":"ES5For-of35.js","sourceRoot":"","sources":["ES5For-of35.ts"],"names":[],"mappings":";;;;;;;;;;;;;IAAA,KAAmC,IAAA,KAAA,SAAA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA,gBAAA,4BAAE;QAAhC,IAAA,aAAoB,EAAnB,SAAQ,EAAL,CAAC,mBAAG,CAAC,KAAA,EAAE,SAAQ,EAAL,CAAC,mBAAG,CAAC,KAAA;QAC1B,CAAC,CAAC;QACF,CAAC,CAAC;KACL"}
//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLiIpOw0KfTsNCnZhciBlXzEsIF9hOw0KdHJ5IHsNCiAgICBmb3IgKHZhciBfYiA9IF9fdmFsdWVzKFsyLCAzXSksIF9jID0gX2IubmV4dCgpOyAhX2MuZG9uZTsgX2MgPSBfYi5uZXh0KCkpIHsNCiAgICAgICAgdmFyIF9kID0gX2MudmFsdWUsIF9lID0gX2QueCwgYSA9IF9lID09PSB2b2lkIDAgPyAwIDogX2UsIF9mID0gX2QueSwgYiA9IF9mID09PSB2b2lkIDAgPyAxIDogX2Y7DQogICAgICAgIGE7DQogICAgICAgIGI7DQogICAgfQ0KfQ0KY2F0Y2ggKGVfMV8xKSB7IGVfMSA9IHsgZXJy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Im1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7O0lBQUEsS0FBbUMsSUFBQSxLQUFBLFNBQUEsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUEsZ0JBQUEsNEJBQUU7UUFBaEMsSUFBQSxhQUFvQixFQUFuQixTQUFRLEVBQUwsQ0FBQyxtQkFBRyxDQUFDLEtBQUEsRUFBRSxTQUFRLEVBQUwsQ0FBQyxtQkFBRyxDQUFDLEtBQUE7UUFDMUIsQ0FBQyxDQUFDO1FBQ0YsQ0FBQyxDQUFDO0tBQ0wifQ==,Zm9yIChjb25zdCB7eDogYSA9IDAsIHk6IGIgPSAxfSBvZiBbMiwgM10pIHsKICAgIGE7CiAgICBiOwp9
@@ -151,7 +151,7 @@ sourceFile:ES5For-of35.ts
>>>catch (e_1_1) { e_1 = { error: e_1_1 }; }
>>>finally {
>>> try {
>>> if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
>>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
>>> }
>>> finally { if (e_1) throw e_1.error; }
>>>}
+1 -1
View File
@@ -43,7 +43,7 @@ try {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
+1 -1
View File
@@ -1,3 +1,3 @@
//// [ES5For-of36.js.map]
{"version":3,"file":"ES5For-of36.js","sourceRoot":"","sources":["ES5For-of36.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAA,KAA2B,IAAA,KAAA,SAAA,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA,gBAAA,4BAAE;QAA1B,IAAA,KAAA,mBAAc,EAAb,UAAK,EAAL,CAAC,mBAAG,CAAC,KAAA,EAAE,UAAK,EAAL,CAAC,mBAAG,CAAC,KAAA;QAClB,CAAC,CAAC;QACF,CAAC,CAAC;KACL"}
//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fdmFsdWVzID0gKHRoaXMgJiYgdGhpcy5fX3ZhbHVlcykgfHwgZnVuY3Rpb24obykgew0KICAgIHZhciBzID0gdHlwZW9mIFN5bWJvbCA9PT0gImZ1bmN0aW9uIiAmJiBTeW1ib2wuaXRlcmF0b3IsIG0gPSBzICYmIG9bc10sIGkgPSAwOw0KICAgIGlmIChtKSByZXR1cm4gbS5jYWxsKG8pOw0KICAgIGlmIChvICYmIHR5cGVvZiBvLmxlbmd0aCA9PT0gIm51bWJlciIpIHJldHVybiB7DQogICAgICAgIG5leHQ6IGZ1bmN0aW9uICgpIHsNCiAgICAgICAgICAgIGlmIChvICYmIGkgPj0gby5sZW5ndGgpIG8gPSB2b2lkIDA7DQogICAgICAgICAgICByZXR1cm4geyB2YWx1ZTogbyAmJiBvW2krK10sIGRvbmU6ICFvIH07DQogICAgICAgIH0NCiAgICB9Ow0KICAgIHRocm93IG5ldyBUeXBlRXJyb3IocyA/ICJPYmplY3QgaXMgbm90IGl0ZXJhYmxlLiIgOiAiU3ltYm9sLml0ZXJhdG9yIGlzIG5vdCBkZWZpbmVkLiIpOw0KfTsNCnZhciBfX3JlYWQgPSAodGhpcyAmJiB0aGlzLl9fcmVhZCkgfHwgZnVuY3Rpb24gKG8sIG4pIHsNCiAgICB2YXIgbSA9IHR5cGVvZiBTeW1ib2wgPT09ICJmdW5jdGlvbiIgJiYgb1tTeW1ib2wuaXRlcmF0b3JdOw0KICAgIGlmICghbSkgcmV0dXJuIG87DQogICAgdmFyIGkgPSBtLmNhbGwobyksIHIsIGFyID0gW10sIGU7DQogICAgdHJ5IHsNCiAgICAgICAgd2hpbGUgKChuID09PSB2b2lkIDAgfHwgbi0tID4gMCkgJiYgIShyID0gaS5uZXh0KCkpLmRvbmUpIGFyLnB1c2goci52YWx1ZSk7DQogICAgfQ0KICAgIGNhdGNoIChlcnJvcikgeyBlID0geyBlcnJvcjogZXJyb3IgfTsgfQ0KICAgI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vcjsgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9RVM1Rm9yLW9mMzYuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRVM1Rm9yLW9mMzYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJFUzVGb3Itb2YzNi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztJQUFBLEtBQTJCLElBQUEsS0FBQSxTQUFBLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFBLGdCQUFBLDRCQUFFO1FBQTFCLElBQUEsS0FBQSxtQkFBYyxFQUFiLFVBQUssRUFBTCxDQUFDLG1CQUFHLENBQUMsS0FBQSxFQUFFLFVBQUssRUFBTCxDQUFDLG1CQUFHLENBQUMsS0FBQTtRQUNsQixDQUFDLENBQUM7UUFDRixDQUFDLENBQUM7S0FDTCJ9,Zm9yIChsZXQgW2EgPSAwLCBiID0gMV0gb2YgWzIsIDNdKSB7CiAgICBhOwogICAgYjsKfQ==
@@ -170,7 +170,7 @@ sourceFile:ES5For-of36.ts
>>>catch (e_1_1) { e_1 = { error: e_1_1 }; }
>>>finally {
>>> try {
>>> if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
>>> if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
>>> }
>>> finally { if (e_1) throw e_1.error; }
>>>}
+2 -2
View File
@@ -45,7 +45,7 @@ try {
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e["return"])) _b.call(_e);
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_2) throw e_2.error; }
}
@@ -59,7 +59,7 @@ try {
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_d && !_d.done && (_a = _c["return"])) _a.call(_c);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}
finally { if (e_1) throw e_1.error; }
}
@@ -1,12 +1,9 @@
tests/cases/compiler/MemberAccessorDeclaration15.ts(2,8): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/MemberAccessorDeclaration15.ts(2,12): error TS2369: A parameter property is only allowed in a constructor implementation.
==== tests/cases/compiler/MemberAccessorDeclaration15.ts (2 errors) ====
==== tests/cases/compiler/MemberAccessorDeclaration15.ts (1 errors) ====
class C {
set Foo(public a: number) { }
~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~~~~~~~~~~~~~~~~
!!! error TS2369: A parameter property is only allowed in a constructor implementation.
}
@@ -31,7 +31,7 @@ export module A {
//// [part1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.A = void 0;
var A;
(function (A) {
@@ -46,7 +46,7 @@ var A;
})(A = exports.A || (exports.A = {}));
//// [part2.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.A = void 0;
var A;
(function (A) {
@@ -1,35 +0,0 @@
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(4,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(10,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(15,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts(19,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorWithES3.ts (4 errors) ====
// error to use accessors in ES3 mode
class C {
get x() {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
return 1;
}
}
class D {
set x(v) {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
}
var x = {
get a() { return 1 }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
var y = {
set b(v) { }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
@@ -1,22 +0,0 @@
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorsAreNotContextuallyTyped.ts(4,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorsAreNotContextuallyTyped.ts(7,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/conformance/classes/propertyMemberDeclarations/memberAccessorDeclarations/accessorsAreNotContextuallyTyped.ts (2 errors) ====
// accessors are not contextually typed
class C {
set x(v: (a: string) => string) {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
get x() {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
return (x: string) => "";
}
}
var c: C;
var r = c.x(''); // string
@@ -1,24 +0,0 @@
tests/cases/compiler/accessorsEmit.ts(4,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessorsEmit.ts(11,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/accessorsEmit.ts (2 errors) ====
class Result { }
class Test {
get Property(): Result {
~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
var x = 1;
return null;
}
}
class Test2 {
get Property() {
~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
var x = 1;
return null;
}
}
@@ -1,14 +0,0 @@
tests/cases/compiler/accessorsNotAllowedInES3.ts(2,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessorsNotAllowedInES3.ts(4,15): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/accessorsNotAllowedInES3.ts (2 errors) ====
class C {
get x(): number { return 1; }
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
var y = { get foo() { return 3; } };
~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
@@ -1,52 +1,28 @@
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(2,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(3,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(3,48): error TS2322: Type 'string' is not assignable to type 'number'.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(5,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(5,47): error TS2322: Type 'string' is not assignable to type 'number'.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(6,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(8,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(9,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(9,52): error TS2322: Type 'number' is not assignable to type 'string'.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(11,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(11,51): error TS2322: Type 'number' is not assignable to type 'string'.
tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts(12,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts (12 errors) ====
==== tests/cases/compiler/accessors_spec_section-4.5_error-cases.ts (4 errors) ====
class LanguageSpec_section_4_5_error_cases {
public set AnnotatedSetter_SetterFirst(a: number) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get AnnotatedSetter_SetterFirst() { return ""; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~~~~~~~~~~
!!! error TS2322: Type 'string' is not assignable to type 'number'.
public get AnnotatedSetter_SetterLast() { return ""; }
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~~~~~~~~~~
!!! error TS2322: Type 'string' is not assignable to type 'number'.
public set AnnotatedSetter_SetterLast(a: number) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get AnnotatedGetter_GetterFirst(): string { return ""; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public set AnnotatedGetter_GetterFirst(aStr) { aStr = 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~~~~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
public set AnnotatedGetter_GetterLast(aStr) { aStr = 0; }
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
~~~~
!!! error TS2322: Type 'number' is not assignable to type 'string'.
public get AnnotatedGetter_GetterLast(): string { return ""; }
~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
@@ -1,63 +0,0 @@
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(6,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(7,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(9,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(10,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(13,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(14,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(16,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(17,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(19,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(20,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(22,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/accessors_spec_section-4.5_inference.ts(23,16): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/accessors_spec_section-4.5_inference.ts (12 errors) ====
class A { }
class B extends A { }
class LanguageSpec_section_4_5_inference {
public set InferredGetterFromSetterAnnotation(a: A) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get InferredGetterFromSetterAnnotation() { return new B(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get InferredGetterFromSetterAnnotation_GetterFirst() { return new B(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public set InferredGetterFromSetterAnnotation_GetterFirst(a: A) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get InferredFromGetter() { return new B(); }
~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public set InferredFromGetter(a) { }
~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public set InferredFromGetter_SetterFirst(a) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get InferredFromGetter_SetterFirst() { return new B(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public set InferredSetterFromGetterAnnotation(a) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get InferredSetterFromGetterAnnotation() : A { return new B(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public get InferredSetterFromGetterAnnotation_GetterFirst() : A { return new B(); }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
public set InferredSetterFromGetterAnnotation_GetterFirst(a) { }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
@@ -15,7 +15,7 @@ y = moduleA; // should be error
//// [aliasAssignments_moduleA.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.someClass = void 0;
var someClass = /** @class */ (function () {
function someClass() {
@@ -25,7 +25,7 @@ var someClass = /** @class */ (function () {
exports.someClass = someClass;
//// [aliasAssignments_1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasAssignments_moduleA");
var x = moduleA;
x = 1; // Should be error
@@ -16,7 +16,7 @@ let x2: string = f;
//// [user.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var demoModule_1 = require("demoModule");
// Assign an incorrect type here to see the type of 'f'.
var x1 = demoNS.f;
@@ -24,7 +24,7 @@ var x: foo.A = foo.bar("hello"); // foo.A should be ok but foo.bar should be err
//// [aliasOnMergedModuleInterface_0.js]
//// [aliasOnMergedModuleInterface_1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var z;
z.bar("hello"); // This should be ok
var x = foo.bar("hello"); // foo.A should be ok but foo.bar should be error
@@ -23,7 +23,7 @@ var xs2: typeof moduleA[] = [moduleA];
//// [aliasUsageInArray_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -48,7 +48,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInArray_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -61,7 +61,7 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInArray_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInArray_moduleA");
var xs = [moduleA];
var xs2 = [moduleA];
@@ -22,7 +22,7 @@ f = (x) => moduleA;
//// [aliasUsageInFunctionExpression_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -47,7 +47,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInFunctionExpression_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -60,7 +60,7 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInFunctionExpression_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInFunctionExpression_moduleA");
var f = function (x) { return x; };
f = function (x) { return moduleA; };
@@ -26,7 +26,7 @@ var r2 = foo({ a: <IHasVisualizationModel>null });
//// [aliasUsageInGenericFunction_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInGenericFunction_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -64,7 +64,7 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInGenericFunction_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInGenericFunction_moduleA");
function foo(x) {
return x;
@@ -28,7 +28,7 @@ class N2 {
//// [aliasUsageInIndexerOfClass_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -53,7 +53,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInIndexerOfClass_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -66,7 +66,7 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInIndexerOfClass_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInIndexerOfClass_moduleA");
var N = /** @class */ (function () {
function N() {
@@ -23,7 +23,7 @@ var c: { y: { z: IHasVisualizationModel } } = { y: { z: moduleA } };
//// [aliasUsageInObjectLiteral_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -48,7 +48,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInObjectLiteral_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -61,7 +61,7 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInObjectLiteral_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInObjectLiteral_moduleA");
var a = { x: moduleA };
var b = { x: moduleA };
@@ -26,7 +26,7 @@ var f: { x: IHasVisualizationModel } = <{ x: IHasVisualizationModel }>null ? { x
//// [aliasUsageInOrExpression_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInOrExpression_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -64,7 +64,7 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInOrExpression_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInOrExpression_moduleA");
var i;
var d1 = i || moduleA;
@@ -26,7 +26,7 @@ class D extends C<IHasVisualizationModel> {
//// [aliasUsageInTypeArgumentOfExtendsClause_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInTypeArgumentOfExtendsClause_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -79,7 +79,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var moduleA = require("./aliasUsageInTypeArgumentOfExtendsClause_moduleA");
var C = /** @class */ (function () {
function C() {
@@ -22,7 +22,7 @@ var m: typeof moduleA = i;
//// [aliasUsageInVarAssignment_backbone.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Model = void 0;
var Model = /** @class */ (function () {
function Model() {
@@ -47,7 +47,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.VisualizationModel = void 0;
var Backbone = require("./aliasUsageInVarAssignment_backbone");
var VisualizationModel = /** @class */ (function (_super) {
@@ -60,6 +60,6 @@ var VisualizationModel = /** @class */ (function (_super) {
exports.VisualizationModel = VisualizationModel;
//// [aliasUsageInVarAssignment_main.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var i;
var m = i;
@@ -20,17 +20,17 @@ export var a = function () {
//// [aliasUsedAsNameValue_0.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.id = void 0;
//// [aliasUsedAsNameValue_1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.b = void 0;
function b(a) { return null; }
exports.b = b;
//// [aliasUsedAsNameValue_2.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
///<reference path='aliasUsedAsNameValue_0.ts' />
///<reference path='aliasUsedAsNameValue_1.ts' />
@@ -12,8 +12,8 @@ var d = b.q3;
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_0.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [aliasWithInterfaceExportAssignmentUsedInVarInitializer_1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var d = b.q3;
@@ -29,24 +29,24 @@ const y: originalZZZ = x;
//// [b.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.zzz = void 0;
exports.zzz = 123;
exports["default"] = exports.zzz;
exports.default = exports.zzz;
//// [a.js]
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = void 0;
var b_1 = require("./b");
exports["default"] = b_1["default"];
exports.default = b_1.default;
var x = { x: "" };
b_1["default"];
b_1.default;
//// [index.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var a_1 = require("./a");
var x = { x: "" };
a_1["default"];
a_1.default;
var b_1 = require("./b");
b_1["default"];
b_1.default;
var y = x;
@@ -21,12 +21,12 @@ export var a = vextend({
//// [func.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.vextend = void 0;
exports.vextend = extend;
//// [app.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
var func_1 = require("./func");
// hover on vextend
@@ -35,6 +35,6 @@ exports.a = (0, func_1.vextend)({
data1: function (val) {
this.data2 = 1;
},
data2: function (val) { }
data2: function (val) { },
}
});
@@ -12,7 +12,7 @@ export class Foo {
//// [a.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.x = void 0;
var b_1 = require("./b");
exports.x = new b_1["default"].Foo();
exports.x = new b_1.default.Foo();
@@ -12,7 +12,7 @@ Foo.default.default.foo();
//// [a.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var Foo = require("./b");
Foo["default"].bar();
Foo["default"]["default"].foo();
Foo.default.bar();
Foo.default.default.foo();
@@ -21,7 +21,7 @@ System.register(["./b"], function (exports_1, context_1) {
}
],
execute: function () {
exports_1("x", x = new b_1["default"].Foo());
exports_1("x", x = new b_1.default.Foo());
}
};
});
@@ -39,7 +39,7 @@ System.register(["./b"], function (exports_1, context_1) {
}
],
execute: function () {
exports_1("x", x = new b_1["default"].Foo());
exports_1("x", x = new b_1.default.Foo());
}
};
});
@@ -13,7 +13,7 @@ export var x = new Foo();
//// [a.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.x = void 0;
var b_1 = require("./b");
exports.x = new b_1["default"]();
exports.x = new b_1.default();
@@ -23,7 +23,7 @@ System.register(["./b"], function (exports_1, context_1) {
}
],
execute: function () {
exports_1("x", x = new b_1["default"]());
exports_1("x", x = new b_1.default());
}
};
});
@@ -23,7 +23,7 @@ System.register(["./b"], function (exports_1, context_1) {
}
],
execute: function () {
exports_1("x", x = new b_1["default"]());
exports_1("x", x = new b_1.default());
}
};
});
@@ -22,8 +22,8 @@ System.register(["./b"], function (exports_1, context_1) {
}
],
execute: function () {
b_1["default"].bar();
b_1["default"].foo();
b_1.default.bar();
b_1.default.foo();
}
};
});
@@ -22,8 +22,8 @@ System.register(["./b"], function (exports_1, context_1) {
}
],
execute: function () {
b_1["default"].bar();
b_1["default"].foo();
b_1.default.bar();
b_1.default.foo();
}
};
});
@@ -12,7 +12,7 @@ Foo.foo();
//// [a.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var b_1 = require("./b");
b_1["default"].bar();
b_1["default"].foo();
b_1.default.bar();
b_1.default.foo();
@@ -14,13 +14,13 @@ export const A = styled();
//// [color.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [file1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [file2.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.A = void 0;
var file1_1 = require("./file1");
exports.A = (0, file1_1.styled)();
@@ -4,7 +4,7 @@ export const a = 1
//// [alwaysStrictModule4.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
// Module commonjs
exports.a = 1;
+2 -2
View File
@@ -13,7 +13,7 @@ declare namespace ns {
//// [a.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.A = void 0;
var A = /** @class */ (function () {
function A() {
@@ -23,4 +23,4 @@ var A = /** @class */ (function () {
exports.A = A;
//// [b.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,7 +27,7 @@ var n: number;
// Ambient external import declaration referencing ambient external module using top level module name
//// [consumer.js]
"use strict";
exports.__esModule = true;
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");
var n = imp3.x;
@@ -34,7 +34,7 @@ foo(fileText);
//// [user.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
///<reference path="declarations.d.ts" />
var foobarbaz_1 = require("foobarbaz");
(0, foobarbaz_1.foo)(foobarbaz_1.baz);
@@ -42,4 +42,4 @@ var foosball_1 = require("foosball");
(0, foobarbaz_1.foo)(foosball_1.foos);
// Works with relative file name
var file_text_1 = require("./file!text");
(0, foobarbaz_1.foo)(file_text_1["default"]);
(0, foobarbaz_1.foo)(file_text_1.default);
@@ -19,7 +19,7 @@ import { everywhere, onlyInA } from "b.foo"; // Error
//// [types.js]
//// [testA.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [testB.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
@@ -21,7 +21,7 @@ declare module "a.foo" {
//// [types.js]
//// [testA.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [testB.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,5 +17,5 @@ ohno.a // oh no
//// [types.js]
//// [test.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
ohno.a; // oh no
@@ -30,7 +30,7 @@ import "foo2";
//// [consumer.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
/// <reference path="./indirection.d.ts" />
/// <reference path="./indirection2.d.ts" />
require("indirect");
@@ -4,5 +4,5 @@ export declare module "M" { }
//// [ambientExternalModuleInsideNonAmbientExternalModule.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
});
@@ -19,7 +19,7 @@ declare module "M" {
//// [ambientExternalModuleMerging_use.js]
define(["require", "exports", "M"], function (require, exports, M) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
// Should be strings
var x = M.x;
var y = M.y;
@@ -22,6 +22,6 @@ var c = new A();
//// [ambientExternalModuleWithInternalImportDeclaration_1.js]
define(["require", "exports", "M"], function (require, exports, A) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var c = new A();
});
@@ -21,6 +21,6 @@ var c = new A();
//// [ambientExternalModuleWithoutInternalImportDeclaration_1.js]
define(["require", "exports", "M"], function (require, exports, A) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var c = new A();
});
@@ -8,5 +8,5 @@ export declare module M { }
//// [ambientInsideNonAmbientExternalModule.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
});
@@ -6,4 +6,4 @@ export declare namespace Foo {
//// [ambientNameRestrictions.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
@@ -15,9 +15,9 @@ foo(bar, baz, boom);
//// [user.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
///<reference path="declarations.d.ts"/>
var jquery_1 = require("jquery");
var baz = require("fs");
var boom = require("jquery");
(0, jquery_1["default"])(jquery_1.bar, baz, boom);
(0, jquery_1.default)(jquery_1.bar, baz, boom);
@@ -14,4 +14,4 @@ import foo from "foo";
//// [user.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
@@ -16,4 +16,4 @@ import foo, {bar} from "foo";
//// [user.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,21 +18,10 @@ x($);
//// [reExportX.js]
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.x = void 0;
var jquery_1 = require("jquery");
__createBinding(exports, jquery_1, "x");
Object.defineProperty(exports, "x", { enumerable: true, get: function () { return jquery_1.x; } });
//// [reExportAll.js]
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
@@ -49,11 +38,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("jquery"), exports);
//// [reExportUser.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var reExportX_1 = require("./reExportX");
var $ = require("./reExportAll");
// '$' is not callable, it is an object.
@@ -39,7 +39,7 @@ var __extends = (this && this.__extends) || (function () {
})();
define("Configurable", ["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Configurable = void 0;
function Configurable(base) {
return /** @class */ (function (_super) {
@@ -58,7 +58,7 @@ define("Configurable", ["require", "exports"], function (require, exports) {
});
define("Class", ["require", "exports", "Configurable"], function (require, exports, Configurable_1) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ActualClass = exports.HiddenClass = void 0;
var HiddenClass = /** @class */ (function () {
function HiddenClass() {
@@ -7,6 +7,6 @@ m1.f();
//// [amdDependencyComment1.js]
"use strict";
///<amd-dependency path='bar'/>
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var m1 = require("m2");
m1.f();
@@ -8,6 +8,6 @@ m1.f();
///<amd-dependency path='bar'/>
define(["require", "exports", "m2", "bar"], function (require, exports, m1) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
m1.f();
});
@@ -7,6 +7,6 @@ m1.f();
//// [amdDependencyCommentName1.js]
"use strict";
///<amd-dependency path='bar' name='b'/>
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var m1 = require("m2");
m1.f();
@@ -8,6 +8,6 @@ m1.f();
///<amd-dependency path='bar' name='b'/>
define(["require", "exports", "bar", "m2"], function (require, exports, b, m1) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
m1.f();
});
@@ -12,6 +12,6 @@ m1.f();
///<amd-dependency path='goo' name='c'/>
define(["require", "exports", "bar", "goo", "m2", "foo"], function (require, exports, b, c, m1) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
m1.f();
});
@@ -27,9 +27,9 @@ import "unaliasedModule2";
///<amd-dependency path='unaliasedModule4'/>
define(["require", "exports", "aliasedModule5", "aliasedModule6", "aliasedModule1", "aliasedModule2", "aliasedModule3", "aliasedModule4", "unaliasedModule3", "unaliasedModule4", "unaliasedModule1", "unaliasedModule2"], function (require, exports, n1, n2, r1, aliasedModule2_1, aliasedModule3_1, ns) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
r1;
aliasedModule2_1.p1;
aliasedModule3_1["default"];
aliasedModule3_1.default;
ns;
});
@@ -15,7 +15,7 @@ if(foo.E1.A === 0){
//// [foo_0.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.E1 = void 0;
var E1;
(function (E1) {
@@ -27,7 +27,7 @@ define(["require", "exports"], function (require, exports) {
//// [foo_1.js]
define(["require", "exports", "./foo_0"], function (require, exports, foo) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
if (foo.E1.A === 0) {
// Should cause runtime import - interesting optimization possibility, as gets inlined to 0.
}
@@ -34,7 +34,7 @@ var e: number = <foo.E1>0;
//// [foo_0.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.E1 = exports.C1 = void 0;
var C1 = /** @class */ (function () {
function C1() {
@@ -54,7 +54,7 @@ define(["require", "exports"], function (require, exports) {
//// [foo_1.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var i;
var x = {};
var y = false;
@@ -10,7 +10,7 @@ export class Bar {}
//// [out.js]
define("mynamespace::SomeModuleA", ["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Foo = void 0;
/// <amd-module name="mynamespace::SomeModuleA" />
var Foo = /** @class */ (function () {
@@ -22,7 +22,7 @@ define("mynamespace::SomeModuleA", ["require", "exports"], function (require, ex
});
define("mynamespace::SomeModuleB", ["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Bar = void 0;
/// <amd-module name="mynamespace::SomeModuleB" />
var Bar = /** @class */ (function () {
@@ -17,7 +17,7 @@ export class User {
//// [cc.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CharCode = void 0;
var CharCode;
(function (CharCode) {
@@ -28,7 +28,7 @@ define(["require", "exports"], function (require, exports) {
//// [file.js]
define(["require", "exports"], function (require, exports) {
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.User = void 0;
var User = /** @class */ (function () {
function User() {
@@ -51,7 +51,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Timestamped = exports.wrapClass = void 0;
function wrapClass(param) {
return /** @class */ (function () {
@@ -93,10 +93,10 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.TimestampedUser = exports.User = void 0;
var wrapClass_1 = require("./wrapClass");
exports["default"] = (0, wrapClass_1.wrapClass)(0);
exports.default = (0, wrapClass_1.wrapClass)(0);
// Simple class
var User = /** @class */ (function () {
function User() {
@@ -24,7 +24,7 @@ var __extends = (this && this.__extends) || (function () {
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.y = exports.X = void 0;
var X = /** @class */ (function () {
function X(a) {
@@ -43,12 +43,12 @@ var __assign = (this && this.__assign) || function () {
var y1 = x1 && 3;
function foo1() {
return __assign({ display: "block" }, (isTreeHeader1 && {
display: "flex"
display: "flex",
}));
}
var y2 = x2 && 3;
function foo2() {
return __assign({ display: "block" }, (isTreeHeader1 && {
display: "flex"
display: "flex",
}));
}
@@ -1,9 +1,7 @@
tests/cases/compiler/anyIdenticalToItself.ts(1,10): error TS2394: This overload signature is not compatible with its implementation signature.
tests/cases/compiler/anyIdenticalToItself.ts(6,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
tests/cases/compiler/anyIdenticalToItself.ts(10,9): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
==== tests/cases/compiler/anyIdenticalToItself.ts (3 errors) ====
==== tests/cases/compiler/anyIdenticalToItself.ts (1 errors) ====
function foo(x: any);
~~~
!!! error TS2394: This overload signature is not compatible with its implementation signature.
@@ -13,13 +11,9 @@ tests/cases/compiler/anyIdenticalToItself.ts(10,9): error TS1056: Accessors are
class C {
get X(): any {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
var y: any;
return y;
}
set X(v: any) {
~
!!! error TS1056: Accessors are only available when targeting ECMAScript 5 and higher.
}
}
@@ -23,7 +23,7 @@ export function evaluate(expression: Expression): boolean {
//// [arrayDestructuringInSwitch1.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.evaluate = void 0;
function evaluate(expression) {
if (Array.isArray(expression)) {
+2 -2
View File
@@ -13,13 +13,13 @@ import { foo } from './foo';
//// [foo.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.foo = void 0;
function foo() { }
exports.foo = foo;
//// [bar.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var foo_1 = require("./foo");
// These should emit identically
foo_1.foo;
@@ -30,16 +30,16 @@ Debug.assert(true);
//// [debug.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
//// [ts.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Debug = void 0;
var Debug = require("../debug");
exports.Debug = Debug;
//// [foo.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("./_namespaces/ts");
var ts_1 = require("./_namespaces/ts");
ts.Debug.assert(true);
@@ -60,11 +60,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
__exportStar(require("../../core/_namespaces/ts"), exports);
//// [bar.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var ts = require("./_namespaces/ts");
var ts_1 = require("./_namespaces/ts");
ts.Debug.assert(true);
@@ -22,7 +22,7 @@ function test(obj: string | null): void {
//// [asserts.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNonNullable = void 0;
function isNonNullable(obj) {
if (obj === undefined || obj === null) {
@@ -32,7 +32,7 @@ function isNonNullable(obj) {
exports.isNonNullable = isNonNullable;
//// [test.js]
"use strict";
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
var asserts = require("./asserts");
function test(obj) {
asserts.isNonNullable(obj);
@@ -28,7 +28,7 @@ export const main = () => {
/**
* @typedef {{ x: number }} A
*/
exports.__esModule = true;
Object.defineProperty(exports, "__esModule", { value: true });
exports.main = void 0;
/**
* @typedef { A & { y: number } } B
@@ -46,26 +46,26 @@ var b3;
b3 = {
f: function (n) { return 0; },
g: function (s) { return 0; },
m: 0
m: 0,
}; // ok
b3 = {
f: function (n) { return 0; },
g: function (s) { return 0; }
g: function (s) { return 0; },
}; // error
b3 = {
f: function (n) { return 0; },
m: 0
m: 0,
}; // error
b3 = {
f: function (n) { return 0; },
g: function (s) { return 0; },
m: 0,
n: 0,
k: function (a) { return null; }
k: function (a) { return null; },
}; // ok
b3 = {
f: function (n) { return 0; },
g: function (s) { return 0; },
n: 0,
k: function (a) { return null; }
k: function (a) { return null; },
}; // error
Loaded 100 of 2983 files, more files were not shown because too many files have changed in this diff. Show more