Skip to content
Myr

Add TODO comment about `spawned.stdin` bug being fixed in Node.js 12 (#258)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by ehmicky · committed by Sindre Sorhus · parent c8a53da · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:index.js+2 added-1 removed
95 unmodified lines
96 return {command, args, options, parsed};97}9899function handleInput(spawned, input) {100 // Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852 on Node.js 10 and 12100 // Checking for stdin is workaround for https://github.com/nodejs/node/issues/26852101 // TODO: Remove `|| spawned.stdin === undefined` once we drop support for Node.js <=12.2.0102 if (input === undefined || spawned.stdin === undefined) {103 return;104 }105
358 unmodified lines