mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Remove single-comma empty array form
This commit is contained in:
@@ -493,7 +493,7 @@ namespace ts {
|
||||
if (startsWith(value, "-")) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === "" || value === ",") {
|
||||
if (value === "") {
|
||||
return [];
|
||||
}
|
||||
const values = value.split(",");
|
||||
|
||||
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user