-
-
Notifications
You must be signed in to change notification settings - Fork 37
Open
Description
Describe the bug
If you use readable.pipeTo(writable) it should throw if there is an error from the destination during write. Currently any errors are caught and the writable is aborted, but the pipeTo() method resolves without an error.
To Reproduce Steps to reproduce the behavior:
Pipe the ponyfilled Readable stream to a writable stream that errors. The pipeTo() returned promise will resolve without error.
Expected behavior
pipeTo() should throw on error.
Environment:
N/A
Additional context
This is important because the ponyfilled ReadableStream implementation is used by default in @whatwg-node/server and this bug causes issues consuming request.body.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels