File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ require('@electron/internal/common/init')
18
18
if ( process . platform === 'win32' ) {
19
19
// Redirect node's console to use our own implementations, since node can not
20
20
// handle console output when running as GUI program.
21
- const consoleLog = ( format : any , ...args : any [ ] ) => {
22
- return process . log ( util . format ( format , ...args ) + '\n' )
21
+ const consoleLog = ( ...args : any [ ] ) => {
22
+ // @ts -ignore this typing is incorrect; 'format' is an optional parameter
23
+ // See https://nodejs.org/api/util.html#util_util_format_format_args
24
+ return process . log ( util . format ( ...args ) + '\n' )
23
25
}
24
26
const streamWrite : NodeJS . WritableStream [ 'write' ] = function ( chunk : Buffer | string , encoding ?: any , callback ?: Function ) {
25
27
if ( Buffer . isBuffer ( chunk ) ) {
You can’t perform that action at this time.
0 commit comments