Merge pull request #249 from Microsoft/setProcessExitCode

Properly set exit code for process.
This commit is contained in:
Anders Hejlsberg
2014-07-25 12:44:03 -07:00
2 changed files with 6 additions and 2 deletions

View File

@@ -125,7 +125,11 @@ var sys: System = (function () {
return 0;
},
exit(exitCode?: number): void {
WScript.Quit(exitCode);
try {
WScript.Quit(exitCode);
}
catch (e) {
}
}
};
}

View File

@@ -227,4 +227,4 @@ module ts {
}
}
ts.executeCommandLine(sys.args);
sys.exit(ts.executeCommandLine(sys.args));