Handle sys.exit in perftc
This commit is contained in:
parent
ee6f694503
commit
cc52e1f428
|
@ -16,11 +16,13 @@ module perftest {
|
|||
var resolvePath = sys.resolvePath;
|
||||
export var getExecutingFilePath = sys.getExecutingFilePath;
|
||||
export var getCurrentDirectory = sys.getCurrentDirectory;
|
||||
var exit = sys.exit;
|
||||
|
||||
var args = sys.args;
|
||||
|
||||
// augment sys so first ts.executeCommandLine call will be finish silently
|
||||
sys.write = (s: string) => { };
|
||||
sys.exit = (code: number) => { };
|
||||
sys.args = []
|
||||
|
||||
export function restoreSys() {
|
||||
|
@ -91,7 +93,6 @@ module perftest {
|
|||
sys.writeFile = (path: string, data: string) => { };
|
||||
|
||||
var out: string = "";
|
||||
var err: string = "";
|
||||
|
||||
sys.write = (s: string) => { out += s; };
|
||||
|
||||
|
|
Loading…
Reference in a new issue