| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 5ea25d2 commit f2b01cb
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -599,7 +599,7 @@ function setupChannel(target, channel) { | |||
| 599 | 599 | if (typeof callback === 'function') { | |
| 600 | 600 | process.nextTick(callback, ex); | |
| 601 | 601 | } else { | |
| 602 | - this.emit('error', ex); // FIXME(bnoordhuis) Defer to next tick. | ||
| 602 | + process.nextTick(() => this.emit('error', ex)); | ||
| 603 | 603 | } | |
| 604 | 604 | return false; | |
| 605 | 605 | }; | |
@@ -713,7 +713,7 @@ function setupChannel(target, channel) { | |||
| 713 | 713 | if (typeof callback === 'function') { | |
| 714 | 714 | process.nextTick(callback, ex); | |
| 715 | 715 | } else { | |
| 716 | - this.emit('error', ex); // FIXME(bnoordhuis) Defer to next tick. | ||
| 716 | + process.nextTick(() => this.emit('error', ex)); | ||
| 717 | 717 | } | |
| 718 | 718 | } | |
| 719 | 719 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments