Skip to content

Commit d204596

Browse files
committed
Remove single-comma empty array form
1 parent a3a1c49 commit d204596

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ namespace ts {
493493
if (startsWith(value, "-")) {
494494
return undefined;
495495
}
496-
if (value === "" || value === ",") {
496+
if (value === "") {
497497
return [];
498498
}
499499
const values = value.split(",");

tests/cases/unittests/commandLineParsing.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -246,18 +246,6 @@ namespace ts {
246246
});
247247
});
248248

249-
it("Parse single comma of --lib ", () => {
250-
// 0.ts --lib
251-
assertParseResult(["0.ts", "--lib", ","],
252-
{
253-
errors: [],
254-
fileNames: ["0.ts"],
255-
options: {
256-
lib: []
257-
}
258-
});
259-
});
260-
261249
it("Parse immediately following command line argument of --lib ", () => {
262250
// 0.ts --lib
263251
assertParseResult(["0.ts", "--lib", "--sourcemap"],

0 commit comments

Comments
 (0)