@@ -477,9 +477,7 @@ namespace ts {
477477 newLine : "\r\n" ,
478478 args : ChakraHost . args ,
479479 useCaseSensitiveFileNames : false ,
480- write ( message : string ) {
481- ChakraHost . echo ( message ) ;
482- } ,
480+ write : ChakraHost . echo ,
483481 readFile ( path : string , encoding ?: string ) {
484482 // encoding is automatically handled by the implementation in ChakraHost
485483 return ChakraHost . readFile ( path ) ;
@@ -492,30 +490,14 @@ namespace ts {
492490
493491 ChakraHost . writeFile ( path , data ) ;
494492 } ,
495- resolvePath ( path : string ) {
496- return ChakraHost . resolvePath ( path ) ;
497- } ,
498- fileExists ( path : string ) {
499- return ChakraHost . fileExists ( path ) ;
500- } ,
501- directoryExists ( path : string ) {
502- return ChakraHost . directoryExists ( path ) ;
503- } ,
504- createDirectory ( path : string ) {
505- ChakraHost . createDirectory ( path ) ;
506- } ,
507- getExecutingFilePath ( ) {
508- return ChakraHost . executingFile ;
509- } ,
510- getCurrentDirectory ( ) {
511- return ChakraHost . currentDirectory ;
512- } ,
513- readDirectory ( path : string , extension ?: string , exclude ?: string [ ] ) {
514- return ChakraHost . readDirectory ( path , extension , exclude ) ;
515- } ,
516- exit ( exitCode ?: number ) {
517- ChakraHost . quit ( exitCode ) ;
518- }
493+ resolvePath : ChakraHost . resolvePath ,
494+ fileExists : ChakraHost . fileExists ,
495+ directoryExists : ChakraHost . directoryExists ,
496+ createDirectory : ChakraHost . createDirectory ,
497+ getExecutingFilePath : ( ) => ChakraHost . executingFile ,
498+ getCurrentDirectory : ( ) => ChakraHost . currentDirectory ,
499+ readDirectory : ChakraHost . readDirectory ,
500+ exit : ChakraHost . quit ,
519501 } ;
520502 }
521503
0 commit comments