mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-29 16:29:19 -05:00
Merge pull request #249 from Microsoft/setProcessExitCode
Properly set exit code for process.
This commit is contained in:
@@ -125,7 +125,11 @@ var sys: System = (function () {
|
||||
return 0;
|
||||
},
|
||||
exit(exitCode?: number): void {
|
||||
WScript.Quit(exitCode);
|
||||
try {
|
||||
WScript.Quit(exitCode);
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@@ -227,4 +227,4 @@ module ts {
|
||||
}
|
||||
}
|
||||
|
||||
ts.executeCommandLine(sys.args);
|
||||
sys.exit(ts.executeCommandLine(sys.args));
|
||||
|
||||
Reference in New Issue
Block a user