File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -876,7 +876,7 @@ namespace Harness {
876
876
useCaseSensitiveFileNames : ( ) => useCaseSensitiveFileNames ,
877
877
getNewLine : ( ) => newLine ,
878
878
fileExists : fileName => getSourceFile ( fileName , ts . ScriptTarget . ES5 ) !== undefined ,
879
- readFile : ( fileName : string ) : string => { throw new Error ( "NotYetImplemented" ) ; }
879
+ readFile : ( fileName : string ) : string => { return Harness . IO . readFile ( fileName ) ; }
880
880
} ;
881
881
}
882
882
Original file line number Diff line number Diff line change @@ -31,22 +31,20 @@ namespace RWC {
31
31
let otherFiles : Harness . Compiler . TestFile [ ] = [ ] ;
32
32
let compilerResult : Harness . Compiler . CompilerResult ;
33
33
let compilerOptions : ts . CompilerOptions ;
34
- let baselineOpts : Harness . Baseline . BaselineOptions = {
34
+ const baselineOpts : Harness . Baseline . BaselineOptions = {
35
35
Subfolder : "rwc" ,
36
36
Baselinefolder : "internal/baselines"
37
37
} ;
38
- let baseName = / ( .* ) \/ ( .* ) .j s o n / . exec ( ts . normalizeSlashes ( jsonPath ) ) [ 2 ] ;
38
+ const baseName = / ( .* ) \/ ( .* ) .j s o n / . exec ( ts . normalizeSlashes ( jsonPath ) ) [ 2 ] ;
39
39
let currentDirectory : string ;
40
40
let useCustomLibraryFile : boolean ;
41
41
after ( ( ) => {
42
42
// Mocha holds onto the closure environment of the describe callback even after the test is done.
43
43
// Therefore we have to clean out large objects after the test is done.
44
- inputFiles = undefined ;
45
- otherFiles = undefined ;
44
+ inputFiles = [ ] ;
45
+ otherFiles = [ ] ;
46
46
compilerResult = undefined ;
47
47
compilerOptions = undefined ;
48
- baselineOpts = undefined ;
49
- baseName = undefined ;
50
48
currentDirectory = undefined ;
51
49
// useCustomLibraryFile is a flag specified in the json object to indicate whether to use built/local/lib.d.ts
52
50
// or to use lib.d.ts inside the json object. If the flag is true, use the lib.d.ts inside json file
You can’t perform that action at this time.
0 commit comments