Title: stream/iter: push() iterator throw() leaves pending next() unresolved · Issue #63554 · nodejs/node · GitHub
Open Graph Title: stream/iter: push() iterator throw() leaves pending next() unresolved · Issue #63554 · nodejs/node
X Title: stream/iter: push() iterator throw() leaves pending next() unresolved · Issue #63554 · nodejs/node
Description: Version 26.2.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { push } from 'node:stream/iter'; const { readable } = push(); const it = readable[Symbol....
Open Graph Description: Version 26.2.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { push } from 'node:stream/iter'; const { readable...
X Description: Version 26.2.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { push } from 'node:stream/iter'; ...
Opengraph URL: https://github.com/nodejs/node/issues/63554
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: push() iterator throw() leaves pending next() unresolved","articleBody":"### Version\n\n26.2.0\n\n### Platform\n\n```text\nmacOS 26.5.0\n```\n\n### Subsystem\n\nstream\n\n### What steps will reproduce the bug?\n\n```js\nimport { setTimeout } from 'node:timers/promises';\nimport { push } from 'node:stream/iter';\n\nconst { readable } = push();\nconst it = readable[Symbol.asyncIterator]();\n\nconst err = new Error('boom');\nconst pendingRead = it.next();\n\nawait it.throw(err);\n\nconsole.log(await Promise.race([\n pendingRead.then(\n (value) =\u003e ({ settled: 'fulfilled', value }),\n (reason) =\u003e ({ settled: 'rejected', reason: reason.message }),\n ),\n setTimeout(100, 'timed out'),\n]));\n\n```\n\n### How often does it reproduce? Is there a required condition?\n\nAlways\n\n### What is the expected behavior? Why is that the expected behavior?\n\nThe pending read should settle, likely by rejecting with `err`, when the iterator is thrown. Spec [§7.1](https://stream-iter.jasnell.me/#push-method) says readable `return()`/`throw()` should abort the pipeline and signal cancellation\n\n### What do you see instead?\n\nlogs `timed out`; the pending `it.next()` never settles after `await it.throw(err)`.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-05-25T07:27:21.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/63554/node/issues/63554"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f0b0a30-16eb-7d8a-19f6-bb0c20b8eac5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CBF6:C0E86:A7DAAE:E4C7FD:6A4D5223 |
| html-safe-nonce | e9353e569579edb7d2fa88c100a9bdadf4e278cb713773e8264aceb386caeaf5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQkY2OkMwRTg2OkE3REFBRTpFNEM3RkQ6NkE0RDUyMjMiLCJ2aXNpdG9yX2lkIjoiNjQ3Nzg3OTAwMTQzMTc1NzM0NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 829079e9f269383b94c74fec6bed276e17f67fac897c4748036d843a82fa87a8 |
| hovercard-subject-tag | issue:4515113953 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/63554/issue_layout |
| twitter:image | https://opengraph.githubassets.com/69761cf9176a9c33621c79cc40578fd27677c24073e5c3de731f207852729064/nodejs/node/issues/63554 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/69761cf9176a9c33621c79cc40578fd27677c24073e5c3de731f207852729064/nodejs/node/issues/63554 |
| og:image:alt | Version 26.2.0 Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { setTimeout } from 'node:timers/promises'; import { push } from 'node:stream/iter'; const { readable... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | trivikr |
| hostname | github.com |
| expected-hostname | github.com |
| None | 92571a8944142227b7e19cd10918b1ddd06e5066c1ad5bc7e4769cf6140a87e6 |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fc8347865a14e2ec811533d68f929cf4e0ec19 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width