(er)
| 58 | |
| 59 | // Don't leave dangling pipes when there are errors. |
| 60 | function onerror(er) { |
| 61 | cleanup(); |
| 62 | // If we removed the last error handler, trigger an unhandled error event. |
| 63 | if (this.listenerCount?.('error') === 0) { |
| 64 | this.emit('error', er); |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | prependListener(source, 'error', onerror); |
| 69 | prependListener(dest, 'error', onerror); |
nothing calls this directly
no test coverage detected