Remove single-comma empty array form

This commit is contained in:
Wesley Wigham 2016-06-10 14:35:13 -07:00
parent a3a1c49739
commit d20459607b
No known key found for this signature in database
GPG Key ID: D59F87F60C5400C9
2 changed files with 1 additions and 13 deletions

View File

@ -493,7 +493,7 @@ namespace ts {
if (startsWith(value, "-")) {
return undefined;
}
if (value === "" || value === ",") {
if (value === "") {
return [];
}
const values = value.split(",");

View File

@ -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"],