@@ -16,18 +16,14 @@ let currentOutputCallback: ((output: ReplOutput) => void) | null = null;
1616const originalConsole = self . console ;
1717self . console = {
1818 ...originalConsole ,
19- log : ( ...args : unknown [ ] ) => {
20- currentOutputCallback ?.( { type : "stdout" , message : format ( ...args ) } ) ;
21- } ,
22- error : ( ...args : unknown [ ] ) => {
23- currentOutputCallback ?.( { type : "stderr" , message : format ( ...args ) } ) ;
24- } ,
25- warn : ( ...args : unknown [ ] ) => {
26- currentOutputCallback ?.( { type : "stderr" , message : format ( ...args ) } ) ;
27- } ,
28- info : ( ...args : unknown [ ] ) => {
29- currentOutputCallback ?.( { type : "stdout" , message : format ( ...args ) } ) ;
30- } ,
19+ log : ( ...args : unknown [ ] ) =>
20+ currentOutputCallback ?.( { type : "stdout" , message : format ( ...args ) } ) ,
21+ error : ( ...args : unknown [ ] ) =>
22+ currentOutputCallback ?.( { type : "stderr" , message : format ( ...args ) } ) ,
23+ warn : ( ...args : unknown [ ] ) =>
24+ currentOutputCallback ?.( { type : "stderr" , message : format ( ...args ) } ) ,
25+ info : ( ...args : unknown [ ] ) =>
26+ currentOutputCallback ?.( { type : "stdout" , message : format ( ...args ) } ) ,
3127} ;
3228
3329async function init ( /*_interruptBuffer?: Uint8Array*/ ) : Promise < {
0 commit comments