Skip to content

Commit

Permalink
lib: fixme defer error to next tick
Browse files Browse the repository at this point in the history
  • Loading branch information
tflanagan committed Jan 22, 2016
1 parent 54cd2e1 commit 2c41576
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/internal/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ function setupChannel(target, channel) {
if (typeof callback === 'function') {
process.nextTick(callback, ex);
} else {
this.emit('error', ex); // FIXME(bnoordhuis) Defer to next tick.
process.nextTick(() => this.emit('error', ex));
}
return false;
};
Expand Down Expand Up @@ -612,7 +612,7 @@ function setupChannel(target, channel) {
if (typeof callback === 'function') {
process.nextTick(callback, ex);
} else {
this.emit('error', ex); // FIXME(bnoordhuis) Defer to next tick.
process.nextTick(() => this.emit('error', ex));
}
}
}
Expand Down

0 comments on commit 2c41576

Please sign in to comment.