summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-fork.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-fork.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-fork.js')
-rw-r--r--test/parallel/test-child-process-fork.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/parallel/test-child-process-fork.js b/test/parallel/test-child-process-fork.js
index 5ae231ef03..a7d4a995a3 100644
--- a/test/parallel/test-child-process-fork.js
+++ b/test/parallel/test-child-process-fork.js
@@ -5,6 +5,8 @@ var fork = require('child_process').fork;
var args = ['foo', 'bar'];
var n = fork(common.fixturesDir + '/child-process-spawn-node.js', args);
+
+assert.strictEqual(n.channel, n._channel);
assert.deepStrictEqual(args, ['foo', 'bar']);
n.on('message', function(m) {