diff --git a/lib/internal/child_process.js b/lib/internal/child_process.js index ff26e8b75ab58c..1ebfcd4c0cd97f 100644 --- a/lib/internal/child_process.js +++ b/lib/internal/child_process.js @@ -715,7 +715,9 @@ function handleMessage(target, message, handle) { message.cmd.slice(0, INTERNAL_PREFIX.length) === INTERNAL_PREFIX) { eventName = 'internalMessage'; } - target.emit(eventName, message, handle); + process.nextTick(() => { + target.emit(eventName, message, handle); + }); } function nop() { }