mirror of
https://github.com/nodejs/node.git
synced 2025-05-09 07:27:32 +00:00

The documentation indicates that child.send() returns a boolean but it has returned undefinined at since v0.12.0. It now returns a boolean per the (slightly updated) documentation. PR-URL: https://github.com/nodejs/node/pull/3516 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
10 lines
250 B
JavaScript
10 lines
250 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const assert = require('assert');
|
|
const fork = require('child_process').fork;
|
|
|
|
const n = fork(common.fixturesDir + '/empty.js');
|
|
|
|
const rv = n.send({ hello: 'world' });
|
|
assert.strictEqual(rv, true);
|