(stream)
| 9 | function noop () {} |
| 10 | |
| 11 | function getWritableError (stream) { |
| 12 | return stream.errored ?? stream.writableErrored ?? stream._writableState?.errored |
| 13 | } |
| 14 | |
| 15 | function createPrematureCloseError () { |
| 16 | const err = new Error('Premature close') |