mirror of https://github.com/lukechilds/node.git
Browse Source
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>process-exit-stdio-flushing
Rich Trott
9 years ago
3 changed files with 15 additions and 5 deletions
@ -0,0 +1,9 @@ |
|||||
|
'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); |
Loading…
Reference in new issue