Skip to content

Commit

Permalink
fix(api/child_process.js): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Mar 13, 2024
1 parent c0f7452 commit dba9b82
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class Pipe extends AsyncResource {
process.stderr.emit = (...args) => {
if (!this.reading) return false
return this.runInAsyncScope(() => {
return emit(process.stderr, ...args)
return emit.call(process.stderr, ...args)
})
}
}
Expand Down Expand Up @@ -477,6 +477,7 @@ export function exec (command, options, callback) {
}

stdout.push(Buffer.from(data))
stdout.push(Buffer.from('\n'))
})
}

Expand All @@ -487,6 +488,7 @@ export function exec (command, options, callback) {
}

stderr.push(Buffer.from(data))
stderr.push(Buffer.from('\n'))
})
}

Expand Down

0 comments on commit dba9b82

Please sign in to comment.