Skip to content

Commit

Permalink
add istanbul ignore for the benefit of node 8
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Oct 29, 2019
1 parent 0b56d8c commit 8d38b28
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/spawn.js
Expand Up @@ -5,7 +5,9 @@ module.exports = (cmd, args, options, ermsg) => new Promise((res, rej) => {
const proc = spawn(cmd, args, options)
const stdout = []
const stderr = []
proc.on('error', er => withStdio(rej, er, stdout, stderr))
proc.on('error',
/* istanbul ignore next: node 8 just throws from spawn() */
er => withStdio(rej, er, stdout, stderr))
if (proc.stdout) {
proc.stdout.on('data', c => stdout.push(c))
proc.stdout.on('error', er => withStdio(rej, er, stdout, stderr))
Expand Down

0 comments on commit 8d38b28

Please sign in to comment.