@@ -835,7 +835,7 @@ module Harness {
835
835
// Register input files
836
836
function register ( file : { unitName : string ; content : string ; } ) {
837
837
if ( file . content !== undefined ) {
838
- var fileName = ts . normalizeSlashes ( file . unitName ) ;
838
+ var fileName = ts . normalizePath ( file . unitName ) ;
839
839
filemap [ getCanonicalFileName ( fileName ) ] = createSourceFileAndAssertInvariants ( fileName , file . content , scriptTarget ) ;
840
840
}
841
841
} ;
@@ -844,6 +844,7 @@ module Harness {
844
844
return {
845
845
getCurrentDirectory,
846
846
getSourceFile : ( fn , languageVersion ) => {
847
+ fn = ts . normalizePath ( fn ) ;
847
848
if ( Object . prototype . hasOwnProperty . call ( filemap , getCanonicalFileName ( fn ) ) ) {
848
849
return filemap [ getCanonicalFileName ( fn ) ] ;
849
850
}
@@ -1078,16 +1079,6 @@ module Harness {
1078
1079
}
1079
1080
} ) ;
1080
1081
1081
- var filemap : { [ name : string ] : ts . SourceFile ; } = { } ;
1082
- var register = ( file : { unitName : string ; content : string ; } ) => {
1083
- if ( file . content !== undefined ) {
1084
- var fileName = ts . normalizeSlashes ( file . unitName ) ;
1085
- filemap [ getCanonicalFileName ( fileName ) ] = createSourceFileAndAssertInvariants ( fileName , file . content , options . target , assertInvariants ) ;
1086
- }
1087
- } ;
1088
- inputFiles . forEach ( register ) ;
1089
- otherFiles . forEach ( register ) ;
1090
-
1091
1082
var fileOutputs : GeneratedFile [ ] = [ ] ;
1092
1083
1093
1084
var programFiles = inputFiles . map ( file => file . unitName ) ;
0 commit comments