| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 308d31d commit e57267b
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -787,7 +787,7 @@ Readable.prototype.pipe = function(dest, pipeOpts) { | |||
| 787 | 787 | debug('onerror', er); | |
| 788 | 788 | unpipe(); | |
| 789 | 789 | dest.removeListener('error', onerror); | |
| 790 | - if (EE.listenerCount(dest, 'error') === 0) { | ||
| 790 | + if (dest.listenerCount('error') === 0) { | ||
| 791 | 791 | const s = dest._writableState || dest._readableState; | |
| 792 | 792 | if (s && !s.errorEmitted) { | |
| 793 | 793 | // User incorrectly emitted 'error' directly on the stream. | |
@@ -852,7 +852,7 @@ function pipeOnDrain(src, dest) { | |||
| 852 | 852 | } | |
| 853 | 853 | ||
| 854 | 854 | if ((!state.awaitDrainWriters || state.awaitDrainWriters.size === 0) && | |
| 855 | - EE.listenerCount(src, 'data')) { | ||
| 855 | + src.listenerCount('data')) { | ||
| 856 | 856 | src.resume(); | |
| 857 | 857 | } | |
| 858 | 858 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments