From 50e3ef448b149ac7c76bfa6d49d2c83e9f54786b Mon Sep 17 00:00:00 2001 From: ehmicky Date: Mon, 20 May 2019 07:13:56 -0700 Subject: [PATCH] Add TODO comment about `spawned.stdin` bug being fixed in Node.js 12 (#258) --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 7a8e3b150..3fbb53722 100644 --- a/index.js +++ b/index.js @@ -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; }