@@ -1038,17 +1038,19 @@ module Harness {
10381038 case 'newline' :
10391039 if ( setting . value . toLowerCase ( ) === 'crlf' ) {
10401040 options . newLine = ts . NewLineKind . CarriageReturnLineFeed ;
1041- newLine = setting . value ;
10421041 }
10431042 else if ( setting . value . toLowerCase ( ) === 'lf' ) {
10441043 options . newLine = ts . NewLineKind . LineFeed ;
1045- newLine = setting . value ;
10461044 }
10471045 else {
10481046 throw new Error ( 'Unknown option for newLine: ' + setting . value ) ;
10491047 }
10501048 break ;
10511049
1050+ case 'normalizenewline' :
1051+ newLine = setting . value ;
1052+ break ;
1053+
10521054 case 'comments' :
10531055 options . removeComments = setting . value === 'false' ;
10541056 break ;
@@ -1482,7 +1484,7 @@ module Harness {
14821484 // List of allowed metadata names
14831485 var fileMetadataNames = [ "filename" , "comments" , "declaration" , "module" ,
14841486 "nolib" , "sourcemap" , "target" , "out" , "outdir" , "noemitonerror" ,
1485- "noimplicitany" , "noresolve" , "newline" , "newlines " , "emitbom" ,
1487+ "noimplicitany" , "noresolve" , "newline" , "normalizenewline " , "emitbom" ,
14861488 "errortruncation" , "usecasesensitivefilenames" , "preserveconstenums" ,
14871489 "includebuiltfile" , "suppressimplicitanyindexerrors" , "stripinternal" ,
14881490 "separatecompilation" ] ;
0 commit comments