Hardening compiler to accept empty CompilerOptions object

This commit is contained in:
Anders Hejlsberg
2015-01-15 15:57:08 -08:00
parent f9f95ba614
commit 65452aa011
5 changed files with 23 additions and 32 deletions

View File

@@ -157,11 +157,7 @@ module ts {
];
export function parseCommandLine(commandLine: string[]): ParsedCommandLine {
// Set default compiler option values
var options: CompilerOptions = {
target: ScriptTarget.ES3,
module: ModuleKind.None
};
var options: CompilerOptions = {};
var filenames: string[] = [];
var errors: Diagnostic[] = [];
var shortOptionNames: Map<string> = {};