Skip to content

Commit

Permalink
Add TODO comment about spawned.stdin bug being fixed in Node.js 12 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky authored and sindresorhus committed May 20, 2019
1 parent c8a53da commit 50e3ef4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Expand Up @@ -97,7 +97,8 @@ function handleArgs(command, args, options = {}) {
}

function handleInput(spawned, input) {
// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852 on Node.js 10 and 12
// Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852
// TODO: Remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0
if (input === undefined || spawned.stdin === undefined) {
return;
}
Expand Down

0 comments on commit 50e3ef4

Please sign in to comment.