Toss the option out the window

This commit is contained in:
Wesley Wigham 2015-08-27 16:35:02 -07:00
parent 3598b906e3
commit e4af02bb8b
2 changed files with 2 additions and 2 deletions

View File

@ -374,7 +374,7 @@ namespace ts {
* Read tsconfig.json file
* @param fileName The path to the config file
*/
export function readConfigFile(fileName: string, system: System = sys): { config?: any; error?: Diagnostic } {
export function readConfigFile(fileName: string, system: System): { config?: any; error?: Diagnostic } {
let text = "";
try {
text = system.readFile(fileName);

View File

@ -216,7 +216,7 @@ namespace ts {
if (!cachedProgram) {
if (configFileName) {
let result = readConfigFile(configFileName);
let result = readConfigFile(configFileName, sys);
if (result.error) {
reportDiagnostic(result.error);
return sys.exit(ExitStatus.DiagnosticsPresent_OutputsSkipped);