FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

stream: reject push iterator.throw() with error by trivikr · Pull Request #64380 · nodejs/node · GitHub

/ node Public

stream: reject push iterator.throw() with error - #64380

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
trivikr:stream-iter-push-readable-throw
Jul 16, 2026
Merged

stream: reject push iterator.throw() with error#64380
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
trivikr:stream-iter-push-readable-throw

Conversation

trivikr commented Jul 9, 2026

Copy link
Copy Markdown
Member

Fixes: #64378

This updates stream/iter push readable iterators so
iterator.throw(error) rejects with the supplied error instead of
resolving with { done: true, value: undefined }.

The existing cancellation behavior is preserved: pending reads, writes,
and drain waiters still observe the consumer error.


Assisted-by: openai:gpt-5.5

Keep the existing consumer cancellation side effects, but
reject the iterator.throw() call with the supplied error
instead of resolving with done: true.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/streams

nodejs-github-bot added needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem. labels Jul 9, 2026
trivikr added the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2026

codecov Bot commented Jul 9, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.24%. Comparing base (0032189) to head (b1e4e88).
⚠️ Report is 57 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #64380   +/-   ##
=======================================
  Coverage   90.23%   90.24%           
=======================================
  Files         741      741           
  Lines      241194   241194           
  Branches    45432    45431    -1     
=======================================
+ Hits       217640   217663   +23     
+ Misses      15129    15089   -40     
- Partials     8425     8442   +17     
Files with missing lines Coverage Δ
lib/internal/streams/iter/push.js 90.84% <100.00%> (ø)

... and 36 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

github-actions Bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jul 9, 2026

This comment was marked as outdated.

trivikr added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jul 9, 2026

Copy link
Copy Markdown
Collaborator

trivikr added the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 16, 2026
nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jul 16, 2026
nodejs-github-bot merged commit 608112a into nodejs:main Jul 16, 2026
95 of 96 checks passed

Copy link
Copy Markdown
Collaborator

Landed in 608112a

aduh95 pushed a commit that referenced this pull request Jul 21, 2026
Keep the existing consumer cancellation side effects, but
reject the iterator.throw() call with the supplied error
instead of resolving with done: true.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #64380
Fixes: #64378
Reviewed-By: James M Snell <jasnell@gmail.com>
aduh95 pushed a commit that referenced this pull request Jul 21, 2026
Keep the existing consumer cancellation side effects, but
reject the iterator.throw() call with the supplied error
instead of resolving with done: true.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #64380
Fixes: #64378
Reviewed-By: James M Snell <jasnell@gmail.com>
RafaelGSS pushed a commit that referenced this pull request Jul 29, 2026
Keep the existing consumer cancellation side effects, but
reject the iterator.throw() call with the supplied error
instead of resolving with done: true.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #64380
Fixes: #64378
Reviewed-By: James M Snell <jasnell@gmail.com>
trivikr deleted the stream-iter-push-readable-throw branch July 31, 2026 04:30
aduh95 pushed a commit that referenced this pull request Aug 6, 2026
Keep the existing consumer cancellation side effects, but
reject the iterator.throw() call with the supplied error
instead of resolving with done: true.

Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com>
Assisted-by: openai:gpt-5.5
PR-URL: #64380
Fixes: #64378
Reviewed-By: James M Snell <jasnell@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs that have at least one approval, no outstanding review comments, and a CI started. needs-ci PRs that need a full CI run. stream Issues and PRs related to the stream subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

stream/iter: push readable iterator.throw() resolves instead of rejecting

3 participants


Back | FazBrowse Home | New Git URL