MCPcopy Index your code
hub / github.com/nodejs/node / createChild

Function createChild

test/parallel/test-child-process-bad-stdio.js:31–36  ·  view source on GitHub ↗
(options, callback)

Source from the content-addressed store, hash-verified

29});
30
31function createChild(options, callback) {
32 const [cmd, opts] = common.escapePOSIXShell`"${process.execPath}" "${__filename}" child`;
33 options = { ...options, env: { ...opts?.env, ...options.env } };
34
35 return cp.exec(cmd, options, common.mustCall(callback));
36}
37
38test('normal execution of a child process is handled', (_, done) => {
39 createChild({}, common.mustCall((err, stdout, stderr) => {

Callers 1

Calls 1

execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…