Hardening compiler to accept empty CompilerOptions object

This commit is contained in:
Anders Hejlsberg committed 2015-01-15 15:57:08 -08:00
1 parent f9f95ba614
commit 65452aa011
5 files changed
+23 -32

No files matched your search

+1 -5
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> = {};