Skip to content

Commit 9befc78

Browse files
committed
Fix missed tasks to add esnext.weakref
Follow up to #38232, based on #33844
1 parent f342209 commit 9befc78

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

src/compiler/commandLineParser.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ namespace ts {
7373
["esnext.intl", "lib.esnext.intl.d.ts"],
7474
["esnext.bigint", "lib.es2020.bigint.d.ts"],
7575
["esnext.string", "lib.esnext.string.d.ts"],
76-
["esnext.promise", "lib.esnext.promise.d.ts"]
76+
["esnext.promise", "lib.esnext.promise.d.ts"],
77+
["esnext.weakref", "lib.esnext.weakref.d.ts"]
7778
];
7879

7980
/**

src/lib/libs.json

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"esnext.intl",
5151
"esnext.string",
5252
"esnext.promise",
53+
"esnext.weakref",
5354
// Default libraries
5455
"es5.full",
5556
"es2015.full",

tests/baselines/reference/tsc/runWithoutArgs/initial-build/show-help-with-ExitStatus.DiagnosticsPresent_OutputsSkipped.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Options:
2626
-t VERSION, --target VERSION Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'.
2727
-m KIND, --module KIND Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'.
2828
--lib Specify library files to be included in the compilation.
29-
'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'es2018' 'es2019' 'es2020' 'esnext' 'dom' 'dom.iterable' 'webworker' 'webworker.importscripts' 'webworker.iterable' '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.asyncgenerator' 'es2018.asynciterable' 'es2018.intl' 'es2018.promise' 'es2018.regexp' 'es2019.array' 'es2019.object' 'es2019.string' 'es2019.symbol' 'es2020.bigint' 'es2020.promise' 'es2020.sharedmemory' 'es2020.string' 'es2020.symbol.wellknown' 'es2020.intl' 'esnext.array' 'esnext.symbol' 'esnext.asynciterable' 'esnext.intl' 'esnext.bigint' 'esnext.string' 'esnext.promise'
29+
'es5' 'es6' 'es2015' 'es7' 'es2016' 'es2017' 'es2018' 'es2019' 'es2020' 'esnext' 'dom' 'dom.iterable' 'webworker' 'webworker.importscripts' 'webworker.iterable' '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.asyncgenerator' 'es2018.asynciterable' 'es2018.intl' 'es2018.promise' 'es2018.regexp' 'es2019.array' 'es2019.object' 'es2019.string' 'es2019.symbol' 'es2020.bigint' 'es2020.promise' 'es2020.sharedmemory' 'es2020.string' 'es2020.symbol.wellknown' 'es2020.intl' 'esnext.array' 'esnext.symbol' 'esnext.asynciterable' 'esnext.intl' 'esnext.bigint' 'esnext.string' 'esnext.promise' 'esnext.weakref'
3030
--allowJs Allow javascript files to be compiled.
3131
--jsx KIND Specify JSX code generation: 'preserve', 'react-native', or 'react'.
3232
-d, --declaration Generates corresponding '.d.ts' file.

0 commit comments

Comments
 (0)