summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-silent.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2016-10-27 14:36:49 -0400
committercjihrig <cjihrig@gmail.com>2016-11-01 20:37:57 -0400
commit2dcb7f3826a360f7cac79a58833dc4c037f67e27 (patch)
treeaa533b4345de7179fa9bfec300504d8314c09930 /test/parallel/test-child-process-silent.js
parentf9814a2cafa6c085ab7927f2d53ca87f552fbd0c (diff)
downloadandroid-node-v8-2dcb7f3826a360f7cac79a58833dc4c037f67e27.tar.gz
android-node-v8-2dcb7f3826a360f7cac79a58833dc4c037f67e27.tar.bz2
android-node-v8-2dcb7f3826a360f7cac79a58833dc4c037f67e27.zip
child_process: add public API for IPC channel
This commit adds a public channel property to ChildProcess. The existing _channel property is aliased to the new property, with the intention of deprecating and removing it in the future. Fixes: https://github.com/nodejs/node/issues/9313 PR-URL: https://github.com/nodejs/node/pull/9322 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Sam Roberts <vieuxtech@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-silent.js')
-rw-r--r--test/parallel/test-child-process-silent.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-child-process-silent.js b/test/parallel/test-child-process-silent.js
index ce5e28cc32..50d4ae881a 100644
--- a/test/parallel/test-child-process-silent.js
+++ b/test/parallel/test-child-process-silent.js
@@ -21,8 +21,8 @@ if (process.argv[2] === 'pipe') {
const child = childProcess.fork(process.argv[1], ['pipe'], {silent: true});
// Allow child process to self terminate
- child._channel.close();
- child._channel = null;
+ child.channel.close();
+ child.channel = null;
child.on('exit', function() {
process.exit(0);