let out = '' ; param { number } char export const stdout = ( char ) : void => { out += String . fromCharCode ( char ) ; if ( char === 10 ) { console . log ( out ) ; out = '' ; } } ; let err = '' ; param { number } char export const stderr = ( char ) : void => { err += String . fromCharCode ( char ) ; if ( char === 10 ) { console . error ( err ) ; err = '' ; } } ; /**
 * Flush remaining buffer
 */ export const flush = ( ) : void => { if ( out . length > 0 ) { console . log ( out ) ; out = '' ; } if ( err . length > 0 ) { console . error ( err ) ; err = '' ; } } ;