mirror of
https://github.com/electron/electron.git
synced 2026-01-27 00:09:09 -05:00
Merge pull request #9132 from electron/fork-eval-node-fix
Cherry pick node fix for ChildProcess.fork --eval bug
This commit is contained in:
@@ -91,6 +91,16 @@ describe('node feature', function () {
|
||||
done()
|
||||
})
|
||||
})
|
||||
|
||||
it('works when sending a message to a process forked with the --eval argument', function (done) {
|
||||
const source = "process.on('message', (message) => { process.send(message) })"
|
||||
const forked = ChildProcess.fork('--eval', [source])
|
||||
forked.once('message', (message) => {
|
||||
assert.equal(message, 'hello')
|
||||
done()
|
||||
})
|
||||
forked.send('hello')
|
||||
})
|
||||
})
|
||||
|
||||
describe('child_process.spawn', function () {
|
||||
|
||||
2
vendor/node
vendored
2
vendor/node
vendored
Submodule vendor/node updated: a6663598aa...3fe90cfcf5
Reference in New Issue
Block a user