File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3674,15 +3674,15 @@ namespace ts {
3674
3674
return output ;
3675
3675
}
3676
3676
3677
- export function base64encode ( host : { base64encode ?( input : string ) : string } , input : string ) : string {
3678
- if ( host . base64encode ) {
3677
+ export function base64encode ( host : { base64encode ?( input : string ) : string } | undefined , input : string ) : string {
3678
+ if ( host && host . base64encode ) {
3679
3679
return host . base64encode ( input ) ;
3680
3680
}
3681
3681
return convertToBase64 ( input ) ;
3682
3682
}
3683
3683
3684
- export function base64decode ( host : { base64decode ?( input : string ) : string } , input : string ) : string {
3685
- if ( host . base64decode ) {
3684
+ export function base64decode ( host : { base64decode ?( input : string ) : string } | undefined , input : string ) : string {
3685
+ if ( host && host . base64decode ) {
3686
3686
return host . base64decode ( input ) ;
3687
3687
}
3688
3688
const length = input . length ;
You can’t perform that action at this time.
0 commit comments