summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-recv-handle.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-recv-handle.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-recv-handle.js')
-rw-r--r--test/parallel/test-child-process-recv-handle.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-child-process-recv-handle.js b/test/parallel/test-child-process-recv-handle.js
index 5257c46b54..e69cd68d33 100644
--- a/test/parallel/test-child-process-recv-handle.js
+++ b/test/parallel/test-child-process-recv-handle.js
@@ -36,12 +36,12 @@ function master() {
}
function worker() {
- process._channel.readStop(); // Make messages batch up.
+ process.channel.readStop(); // Make messages batch up.
process.stdout.ref();
process.stdout.write('ok\r\n');
process.stdin.once('data', common.mustCall((data) => {
assert.strictEqual(data.toString(), 'ok\r\n');
- process._channel.readStart();
+ process.channel.readStart();
}));
let n = 0;
process.on('message', common.mustCall((msg, handle) => {