Fixes crash if the process we're wrapping uses process.send().
Essentially, what can happen is that the wrapped process uses process.send() for a test hook or a way to talk to a cluster master, and babel-watch will just happily try to pull filename off whatever object was sent and pass it to path. This can lead to a nasty error as path will refuse to resolve undefined.
Fixes crash if the process we're wrapping uses
process.send()
.Essentially, what can happen is that the wrapped process uses
process.send()
for a test hook or a way to talk to a cluster master, and babel-watch will just happily try to pullfilename
off whatever object was sent and pass it topath
. This can lead to a nasty error aspath
will refuse to resolveundefined
.