Skip to content
Myr

Fix `spawn undefined ENOENT` bug in Windows (#76)

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

Fixes #35

authored by Sam Verschueren · committed by Sindre Sorhus · parent 80a059d · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:index.js+3 added-2 removed
42 unmodified lines
4344 return {45 cmd: parsed.command,46 args: parsed.args,47 opts47 opts,48 parsed49 };50}5152function handleInput(spawned, opts) {
187 unmodified lines
240 timedOut: false241 };242 }), destroy);243243 crossSpawn._enoent.hookChildProcess(spawned, parsed);244 crossSpawn._enoent.hookChildProcess(spawned, parsed.parsed);245246 handleInput(spawned, parsed.opts);247248 spawned.then = promise.then.bind(promise);
39 unmodified lines