Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Fix child process #7

Merged
merged 2 commits into from
Jun 18, 2019
Merged

Fix child process #7

merged 2 commits into from
Jun 18, 2019

Conversation

exoego
Copy link
Owner

@exoego exoego commented Jun 18, 2019

exec, fork and spawn are member of child_process module, not ChildProcess class.

const cp = require("child_process");

assert(typeof cp.exec == "function")
const process = cp.exec("cat ./package.json", null, (a,b,c)=> { console.log(b)});
assert(typeof process .exec == "undefined")

@exoego exoego merged commit 2d1c5b9 into master Jun 18, 2019
@exoego exoego deleted the fix-child-process branch June 18, 2019 02:32
@exoego exoego added the enhancement New feature or request label Oct 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant