File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,11 +16,13 @@ module perftest {
16
16
var resolvePath = sys . resolvePath ;
17
17
export var getExecutingFilePath = sys . getExecutingFilePath ;
18
18
export var getCurrentDirectory = sys . getCurrentDirectory ;
19
+ var exit = sys . exit ;
19
20
20
21
var args = sys . args ;
21
22
22
23
// augment sys so first ts.executeCommandLine call will be finish silently
23
24
sys . write = ( s : string ) => { } ;
25
+ sys . exit = ( code : number ) => { } ;
24
26
sys . args = [ ]
25
27
26
28
export function restoreSys ( ) {
@@ -88,10 +90,9 @@ module perftest {
88
90
return path
89
91
}
90
92
91
- sys . writeFile = ( path : string , data : string ) => { } ;
93
+ sys . writeFile = ( path : string , data : string ) => { } ;
92
94
93
95
var out : string = "" ;
94
- var err : string = "" ;
95
96
96
97
sys . write = ( s : string ) => { out += s ; } ;
97
98
You can’t perform that action at this time.
0 commit comments