Skip to content

Commit 8d38b28

Browse files
committed
add istanbul ignore for the benefit of node 8
1 parent 0b56d8c commit 8d38b28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/util/spawn.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ module.exports = (cmd, args, options, ermsg) => new Promise((res, rej) => {
55
const proc = spawn(cmd, args, options)
66
const stdout = []
77
const stderr = []
8-
proc.on('error', er => withStdio(rej, er, stdout, stderr))
8+
proc.on('error',
9+
/* istanbul ignore next: node 8 just throws from spawn() */
10+
er => withStdio(rej, er, stdout, stderr))
911
if (proc.stdout) {
1012
proc.stdout.on('data', c => stdout.push(c))
1113
proc.stdout.on('error', er => withStdio(rej, er, stdout, stderr))

0 commit comments

Comments
 (0)