projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ec7cc9
)
Add failing spec for fork --eval message bug
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Thu, 6 Apr 2017 16:47:33 +0000
(09:47 -0700)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Thu, 6 Apr 2017 16:48:34 +0000
(09:48 -0700)
spec/node-spec.js
patch
|
blob
|
history
diff --git
a/spec/node-spec.js
b/spec/node-spec.js
index
98db1ef
..
07f562f
100644
(file)
--- a/
spec/node-spec.js
+++ b/
spec/node-spec.js
@@
-91,6
+91,16
@@
describe('node feature', function () {
done()
})
})
+
+ it('works when sending message to a forked process using the --eval argument', function (done) {
+ const source = "process.on('message', function (msg) { process.send(msg) })"
+ const forked = ChildProcess.fork('--eval', [source])
+ forked.on('message', (message) => {
+ assert.equal(message, 'hello')
+ done()
+ })
+ forked.send('hello')
+ })
})
describe('child_process.spawn', function () {