GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — stream: reject operators on empty streams with aborted signal by vedchaudhari · Pull Request #67637 · nodejs/node Conversation
Contributor
If an already-aborted signal is passed to a stream operator and the stream is empty, the promise resolves instead of rejecting with an AbortError. For example This checks the signal up front in Assisted-by: an AI coding agent. Reviewed and tested locally by me.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsStream operators given an already-aborted signal resolved instead of rejecting when the stream was empty, because the signal was only checked once a chunk arrived. Check it up front in map() and toArray(), which the other operators are built on. Signed-off-by: vedchaudhari <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@ ## main #67637 +/- ## ======================================= Coverage 90.71% 90.72% ======================================= Files 801 801 Lines 280889 280900 +11 Branches 54248 54246 -2 ======================================= + Hits 254804 254835 +31 + Misses 16255 16245 -10 + Partials 9830 9820 -10
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for the reviews @mcollina, @jasnell and @Ethan-Arrowood! CI is green, so this should be good to go for commit-queue whenever you get a chance. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 448888a |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Stream operators given an already-aborted signal resolved instead of rejecting when the stream was empty, because the signal was only checked once a chunk arrived. Check it up front in map() and toArray(), which the other operators are built on. Signed-off-by: vedchaudhari <[email protected]> PR-URL: #67637 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]>
Stream operators given an already-aborted signal resolved instead of rejecting when the stream was empty, because the signal was only checked once a chunk arrived. Check it up front in map() and toArray(), which the other operators are built on. Signed-off-by: vedchaudhari <[email protected]> PR-URL: nodejs#67637 Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ethan Arrowood <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.