Skip to content

Commit 23d0a46

Browse files
author
Bartek Wrona
committed
Rename nodeChildProcess to child_process per reviewer feedback
1 parent 6221db1 commit 23d0a46

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/libcore.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,8 +374,8 @@ addToLibrary({
374374

375375
#if ENVIRONMENT_MAY_BE_NODE
376376
$nodeOs: "{{{ makeNodeImport('node:os') }}}",
377-
$nodeChildProcess: "{{{ makeNodeImport('node:child_process') }}}",
378-
_emscripten_system__deps: ['$nodeChildProcess'],
377+
$child_process: "{{{ makeNodeImport('node:child_process') }}}",
378+
_emscripten_system__deps: ['$child_process'],
379379
#endif
380380
_emscripten_system: (command) => {
381381
#if ENVIRONMENT_MAY_BE_NODE
@@ -385,7 +385,7 @@ addToLibrary({
385385
var cmdstr = UTF8ToString(command);
386386
if (!cmdstr.length) return 0; // this is what glibc seems to do (shell works test?)
387387

388-
var ret = nodeChildProcess.spawnSync(cmdstr, [], {shell:true, stdio:'inherit'});
388+
var ret = child_process.spawnSync(cmdstr, [], {shell:true, stdio:'inherit'});
389389

390390
var _W_EXITCODE = (ret, sig) => ((ret) << 8 | (sig));
391391

0 commit comments

Comments
 (0)