0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 23:43:09 +01:00
nodejs/test/fixtures/child-process-spawn-node.js

11 lines
222 B
JavaScript
Raw Normal View History

var assert = require('assert');
process.on('message', function(m) {
console.log('CHILD got message:', m);
assert.ok(m.hello);
// Note that we have to force exit.
process.exit();
});
process.send({ foo: 'bar' });