@@ -477,9 +477,7 @@ namespace ts {
477
477
newLine : "\r\n" ,
478
478
args : ChakraHost . args ,
479
479
useCaseSensitiveFileNames : false ,
480
- write ( message : string ) {
481
- ChakraHost . echo ( message ) ;
482
- } ,
480
+ write : ChakraHost . echo ,
483
481
readFile ( path : string , encoding ?: string ) {
484
482
// encoding is automatically handled by the implementation in ChakraHost
485
483
return ChakraHost . readFile ( path ) ;
@@ -492,30 +490,14 @@ namespace ts {
492
490
493
491
ChakraHost . writeFile ( path , data ) ;
494
492
} ,
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 ,
519
501
} ;
520
502
}
521
503
0 commit comments