diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 5188c1f8483..1434cbbadf0 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -493,7 +493,7 @@ namespace ts { if (startsWith(value, "-")) { return undefined; } - if (value === "" || value === ",") { + if (value === "") { return []; } const values = value.split(","); diff --git a/tests/cases/unittests/commandLineParsing.ts b/tests/cases/unittests/commandLineParsing.ts index 5f4d9ac0d07..49b22b903ad 100644 --- a/tests/cases/unittests/commandLineParsing.ts +++ b/tests/cases/unittests/commandLineParsing.ts @@ -246,18 +246,6 @@ namespace ts { }); }); - it("Parse single comma of --lib ", () => { - // 0.ts --lib - assertParseResult(["0.ts", "--lib", ","], - { - errors: [], - fileNames: ["0.ts"], - options: { - lib: [] - } - }); - }); - it("Parse immediately following command line argument of --lib ", () => { // 0.ts --lib assertParseResult(["0.ts", "--lib", "--sourcemap"],