Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add es3.d.ts #28372

Closed
wants to merge 12 commits into from
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into es3
saschanaz committed Apr 26, 2019
commit a36273d74c4586e40331d95cc24251b194c0d885
6 changes: 3 additions & 3 deletions src/testRunner/unittests/config/commandLineParsing.ts
Original file line number Diff line number Diff line change
@@ -57,7 +57,7 @@ namespace ts {
assertParseResult(["--lib", "es5,invalidOption", "0.ts"],
{
errors: [{
messageText: "Argument for '--lib' option must be: 'es3', 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.",
messageText: "Argument for '--lib' option must be: 'es3', 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'es2020.string', 'es2020.symbol.wellknown', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.",
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
file: undefined,
@@ -259,7 +259,7 @@ namespace ts {
assertParseResult(["--lib", "es5,", "es7", "0.ts"],
{
errors: [{
messageText: "Argument for '--lib' option must be: 'es3', 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.",
messageText: "Argument for '--lib' option must be: 'es3', 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'es2020.string', 'es2020.symbol.wellknown', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.",
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
file: undefined,
@@ -278,7 +278,7 @@ namespace ts {
assertParseResult(["--lib", "es5, ", "es7", "0.ts"],
{
errors: [{
messageText: "Argument for '--lib' option must be: 'es3', 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.",
messageText: "Argument for '--lib' option must be: 'es3', 'es5', 'es6', 'es2015', 'es7', 'es2016', 'es2017', 'es2018', 'es2019', 'es2020', 'esnext', 'dom', 'dom.iterable', 'webworker', 'webworker.importscripts', 'scripthost', 'es2015.core', 'es2015.collection', 'es2015.generator', 'es2015.iterable', 'es2015.promise', 'es2015.proxy', 'es2015.reflect', 'es2015.symbol', 'es2015.symbol.wellknown', 'es2016.array.include', 'es2017.object', 'es2017.sharedmemory', 'es2017.string', 'es2017.intl', 'es2017.typedarrays', 'es2018.asynciterable', 'es2018.intl', 'es2018.promise', 'es2018.regexp', 'es2019.array', 'es2019.string', 'es2019.symbol', 'es2020.string', 'es2020.symbol.wellknown', 'esnext.array', 'esnext.symbol', 'esnext.asynciterable', 'esnext.intl', 'esnext.bigint'.",
category: Diagnostics.Argument_for_0_option_must_be_Colon_1.category,
code: Diagnostics.Argument_for_0_option_must_be_Colon_1.code,
file: undefined,
11 changes: 0 additions & 11 deletions src/testRunner/unittests/tsbuild/helpers.ts
Original file line number Diff line number Diff line change
@@ -82,17 +82,6 @@ declare const console: { log(msg: any): void; };`;
return fs;
}

export function getLibs() {
return [
"/lib/lib.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/lib/lib.scripthost.d.ts"
];
}

function generateSourceMapBaselineFiles(fs: vfs.FileSystem, mapFileNames: ReadonlyArray<string>) {
for (const mapFile of mapFileNames) {
if (!fs.existsSync(mapFile)) continue;

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -172,28 +172,8 @@ export class someClass { }
"program": {
"fileInfos": {
"/lib/lib.d.ts": {
"version": "/lib/lib.d.ts",
"signature": "/lib/lib.d.ts"
},
"/lib/lib.es3.d.ts": {
"version": "/lib/lib.es3.d.ts",
"signature": "/lib/lib.es3.d.ts"
},
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.dom.d.ts": {
"version": "/lib/lib.dom.d.ts",
"signature": "/lib/lib.dom.d.ts"
},
"/lib/lib.webworker.importscripts.d.ts": {
"version": "/lib/lib.webworker.importscripts.d.ts",
"signature": "/lib/lib.webworker.importscripts.d.ts"
},
"/lib/lib.scripthost.d.ts": {
"version": "/lib/lib.scripthost.d.ts",
"signature": "/lib/lib.scripthost.d.ts"
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/core/anothermodule.ts": {
"version": "-2676574883",
@@ -219,11 +199,6 @@ export class someClass { }
"exportedModulesMap": {},
"semanticDiagnosticsPerFile": [
"/lib/lib.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.scripthost.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/src/core/anothermodule.ts",
"/src/core/index.ts",
"/src/core/some_decl.d.ts"
@@ -237,28 +212,8 @@ export class someClass { }
"program": {
"fileInfos": {
"/lib/lib.d.ts": {
"version": "/lib/lib.d.ts",
"signature": "/lib/lib.d.ts"
},
"/lib/lib.es3.d.ts": {
"version": "/lib/lib.es3.d.ts",
"signature": "/lib/lib.es3.d.ts"
},
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.dom.d.ts": {
"version": "/lib/lib.dom.d.ts",
"signature": "/lib/lib.dom.d.ts"
},
"/lib/lib.webworker.importscripts.d.ts": {
"version": "/lib/lib.webworker.importscripts.d.ts",
"signature": "/lib/lib.webworker.importscripts.d.ts"
},
"/lib/lib.scripthost.d.ts": {
"version": "/lib/lib.scripthost.d.ts",
"signature": "/lib/lib.scripthost.d.ts"
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/core/index.ts": {
"version": "-2069755619",
@@ -294,11 +249,6 @@ export class someClass { }
},
"semanticDiagnosticsPerFile": [
"/lib/lib.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.scripthost.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/src/core/anothermodule.ts",
"/src/core/index.ts",
"/src/logic/index.ts"
@@ -312,28 +262,8 @@ export class someClass { }
"program": {
"fileInfos": {
"/lib/lib.d.ts": {
"version": "/lib/lib.d.ts",
"signature": "/lib/lib.d.ts"
},
"/lib/lib.es3.d.ts": {
"version": "/lib/lib.es3.d.ts",
"signature": "/lib/lib.es3.d.ts"
},
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.dom.d.ts": {
"version": "/lib/lib.dom.d.ts",
"signature": "/lib/lib.dom.d.ts"
},
"/lib/lib.webworker.importscripts.d.ts": {
"version": "/lib/lib.webworker.importscripts.d.ts",
"signature": "/lib/lib.webworker.importscripts.d.ts"
},
"/lib/lib.scripthost.d.ts": {
"version": "/lib/lib.scripthost.d.ts",
"signature": "/lib/lib.scripthost.d.ts"
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/core/index.ts": {
"version": "-2069755619",
@@ -379,11 +309,6 @@ export class someClass { }
},
"semanticDiagnosticsPerFile": [
"/lib/lib.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.scripthost.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/src/core/anothermodule.ts",
"/src/core/index.ts",
"/src/logic/index.ts",
Original file line number Diff line number Diff line change
@@ -25,28 +25,8 @@ export declare const m: typeof mod;
"program": {
"fileInfos": {
"/lib/lib.d.ts": {
"version": "/lib/lib.d.ts",
"signature": "/lib/lib.d.ts"
},
"/lib/lib.es3.d.ts": {
"version": "/lib/lib.es3.d.ts",
"signature": "/lib/lib.es3.d.ts"
},
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.dom.d.ts": {
"version": "/lib/lib.dom.d.ts",
"signature": "/lib/lib.dom.d.ts"
},
"/lib/lib.webworker.importscripts.d.ts": {
"version": "/lib/lib.webworker.importscripts.d.ts",
"signature": "/lib/lib.webworker.importscripts.d.ts"
},
"/lib/lib.scripthost.d.ts": {
"version": "/lib/lib.scripthost.d.ts",
"signature": "/lib/lib.scripthost.d.ts"
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/core/index.ts": {
"version": "-13851440507",
@@ -83,11 +63,6 @@ export declare const m: typeof mod;
},
"semanticDiagnosticsPerFile": [
"/lib/lib.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.scripthost.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/src/core/anothermodule.ts",
"/src/core/index.ts",
"/src/logic/index.ts"
@@ -101,28 +76,8 @@ export declare const m: typeof mod;
"program": {
"fileInfos": {
"/lib/lib.d.ts": {
"version": "/lib/lib.d.ts",
"signature": "/lib/lib.d.ts"
},
"/lib/lib.es3.d.ts": {
"version": "/lib/lib.es3.d.ts",
"signature": "/lib/lib.es3.d.ts"
},
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.dom.d.ts": {
"version": "/lib/lib.dom.d.ts",
"signature": "/lib/lib.dom.d.ts"
},
"/lib/lib.webworker.importscripts.d.ts": {
"version": "/lib/lib.webworker.importscripts.d.ts",
"signature": "/lib/lib.webworker.importscripts.d.ts"
},
"/lib/lib.scripthost.d.ts": {
"version": "/lib/lib.scripthost.d.ts",
"signature": "/lib/lib.scripthost.d.ts"
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/core/index.ts": {
"version": "-13851440507",
@@ -168,11 +123,6 @@ export declare const m: typeof mod;
},
"semanticDiagnosticsPerFile": [
"/lib/lib.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.scripthost.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/src/core/anothermodule.ts",
"/src/core/index.ts",
"/src/logic/index.ts",
Original file line number Diff line number Diff line change
@@ -25,28 +25,8 @@ class someClass { }
"program": {
"fileInfos": {
"/lib/lib.d.ts": {
"version": "/lib/lib.d.ts",
"signature": "/lib/lib.d.ts"
},
"/lib/lib.es3.d.ts": {
"version": "/lib/lib.es3.d.ts",
"signature": "/lib/lib.es3.d.ts"
},
"/lib/lib.es5.d.ts": {
"version": "/lib/lib.es5.d.ts",
"signature": "/lib/lib.es5.d.ts"
},
"/lib/lib.dom.d.ts": {
"version": "/lib/lib.dom.d.ts",
"signature": "/lib/lib.dom.d.ts"
},
"/lib/lib.webworker.importscripts.d.ts": {
"version": "/lib/lib.webworker.importscripts.d.ts",
"signature": "/lib/lib.webworker.importscripts.d.ts"
},
"/lib/lib.scripthost.d.ts": {
"version": "/lib/lib.scripthost.d.ts",
"signature": "/lib/lib.scripthost.d.ts"
"version": "-15964756381",
"signature": "-15964756381"
},
"/src/core/anothermodule.ts": {
"version": "-2676574883",
@@ -72,11 +52,6 @@ class someClass { }
"exportedModulesMap": {},
"semanticDiagnosticsPerFile": [
"/lib/lib.d.ts",
"/lib/lib.dom.d.ts",
"/lib/lib.es3.d.ts",
"/lib/lib.es5.d.ts",
"/lib/lib.scripthost.d.ts",
"/lib/lib.webworker.importscripts.d.ts",
"/src/core/anothermodule.ts",
"/src/core/index.ts",
"/src/core/some_decl.d.ts"
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.