diff options
Diffstat (limited to 'test/simple/test-child-process-fork.js')
-rw-r--r-- | test/simple/test-child-process-fork.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/simple/test-child-process-fork.js b/test/simple/test-child-process-fork.js index 4860732b71..41cc28c72e 100644 --- a/test/simple/test-child-process-fork.js +++ b/test/simple/test-child-process-fork.js @@ -35,6 +35,11 @@ n.on('message', function(m) { messageCount++; }); +// https://github.com/joyent/node/issues/2355 - JSON.stringify(undefined) +// returns "undefined" but JSON.parse() cannot parse that... +assert.throws(function() { n.send(undefined); }, TypeError); +assert.throws(function() { n.send(); }, TypeError); + n.send({ hello: 'world' }); var childExitCode = -1; |