Title: stream/iter: broadcast strict-backpressure overflow rejects with TypeError instead of RangeError · Issue #64419 · nodejs/node · GitHub
Open Graph Title: stream/iter: broadcast strict-backpressure overflow rejects with TypeError instead of RangeError · Issue #64419 · nodejs/node
X Title: stream/iter: broadcast strict-backpressure overflow rejects with TypeError instead of RangeError · Issue #64419 · nodejs/node
Description: Version main Platform macOS 26.5.2 Subsystem stream What steps will reproduce the bug? import { broadcast } from 'node:stream/iter'; const { writer } = broadcast({ highWaterMark: 1, backpressure: 'strict', }); await writer.write('one'); ...
Open Graph Description: Version main Platform macOS 26.5.2 Subsystem stream What steps will reproduce the bug? import { broadcast } from 'node:stream/iter'; const { writer } = broadcast({ highWaterMark: 1, backpressure: '...
X Description: Version main Platform macOS 26.5.2 Subsystem stream What steps will reproduce the bug? import { broadcast } from 'node:stream/iter'; const { writer } = broadcast({ highWaterMark: 1, backpre...
Opengraph URL: https://github.com/nodejs/node/issues/64419
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: broadcast strict-backpressure overflow rejects with TypeError instead of RangeError","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nmacOS 26.5.2\n```\n\n### Subsystem\n\nstream\n\n### What steps will reproduce the bug?\n\n```js\nimport { broadcast } from 'node:stream/iter';\n\nconst { writer } = broadcast({\n highWaterMark: 1,\n backpressure: 'strict',\n});\n\nawait writer.write('one');\nconst pending = writer.write('two');\n\ntry {\n await writer.write('three');\n} catch (error) {\n console.log(error.name);\n console.log(error instanceof RangeError);\n}\n\nwriter.fail();\nawait pending.catch(() => {});\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\n```console\nRangeError\ntrue\n```\n\nAs per [§7.2.2, `Writer.write()`, step 7.3](https://stream-iter.jasnell.me/#writer-write)\n> If \"strict\": if the pending writes queue is at capacity, return [a promise rejected with](https://webidl.spec.whatwg.org/#a-promise-rejected-with) a [RangeError](https://webidl.spec.whatwg.org/#exceptiondef-rangeerror).\n\n### What do you see instead?\n\n```console\nTypeError\nfalse\n```\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-07-11T07:07:33Z","url":"https://github.com/nodejs/node/issues/64419"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:04d77c6c-b9e1-abda-b3cc-600027d4f665 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E4F2:2C3014:3F3888:51EDE2:6AED205F |
| html-safe-nonce | d207e28dff62e9ddc09b75c5626a26e7c2bc1bf15d85a052d741476bcccef1ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEYyOjJDMzAxNDozRjM4ODg6NTFFREUyOjZBRUQyMDVGIiwidmlzaXRvcl9pZCI6IjI2OTIxMTMzMzAwMTk4MzU5OTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0052d47cc26ef03440118e9569603008e67685a931e2b8279c207351d26da693 |
| hovercard-subject-tag | issue:4861094478 |
| 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/64419/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0719b5b784980b67b733d27948664ac0dfa05495848dc2721ff7bf7f8a92a740/nodejs/node/issues/64419 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0719b5b784980b67b733d27948664ac0dfa05495848dc2721ff7bf7f8a92a740/nodejs/node/issues/64419 |
| og:image:alt | Version main Platform macOS 26.5.2 Subsystem stream What steps will reproduce the bug? import { broadcast } from 'node:stream/iter'; const { writer } = broadcast({ highWaterMark: 1, backpressure: '... |
| 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 | e3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6 |
| 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 | 707a24b346ac8a82878b9c084efaa38a997660cb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width