Title: stream/iter: writevSync queues invalid chunks before throwing · Issue #64299 · nodejs/node · GitHub
Open Graph Title: stream/iter: writevSync queues invalid chunks before throwing · Issue #64299 · nodejs/node
X Title: stream/iter: writevSync queues invalid chunks before throwing · Issue #64299 · nodejs/node
Description: Version main Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { push } from 'stream/iter'; const { writer, readable } = push({ highWaterMark: 10 }); try { writer.writevSync([1]); } catch (e) { console.log(...
Open Graph Description: Version main Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { push } from 'stream/iter'; const { writer, readable } = push({ highWaterMark: 10 }); try { writer.wri...
X Description: Version main Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { push } from 'stream/iter'; const { writer, readable } = push({ highWaterMark: 10 }); try { wr...
Opengraph URL: https://github.com/nodejs/node/issues/64299
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: writevSync queues invalid chunks before throwing","articleBody":"### Version\n\nmain\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 { push } from 'stream/iter';\n\nconst { writer, readable } = push({ highWaterMark: 10 });\n\ntry {\n writer.writevSync([1]);\n} catch (e) {\n console.log(e.name, e.code);\n}\n\nconsole.log(await readable[Symbol.asyncIterator]().next());\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`writevSync([1])` should throw a Node validation error like TypeError `ERR_INVALID_ARG_TYPE`, and the invalid chunk should not be written, so the readable should remain empty/pending.\n\n### What do you see instead?\n\n```console\nTypeError undefined\n[Object: null prototype] { done: false, value: [ 1 ] }\n```\nit throws `TypeError undefined`, and the invalid value is queued.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-07-05T01:08:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/64299/node/issues/64299"}
| 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:9877b5c2-7585-de71-e01c-38c2263ffc86 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA6E:3C5D39:44BD60:6549EE:6A632272 |
| html-safe-nonce | ad15630fd46d0515209da45dbb275fde496f1efe49a046766a15f5b33872e796 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTZFOjNDNUQzOTo0NEJENjA6NjU0OUVFOjZBNjMyMjcyIiwidmlzaXRvcl9pZCI6IjY4NDE4NzgwNjgxNzk3MDY0ODIiLCJyZWdpb25fZWRnZSI6Indlc3R1czIiLCJyZWdpb25fcmVuZGVyIjoid2VzdHVzMiJ9 |
| visitor-hmac | 386528845bfaafa7456448188d14c226eaea1bdbdbb5acc7b7ba21f136caaad8 |
| hovercard-subject-tag | issue:4811137279 |
| 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/64299/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2a9d6e7e46453cee55792f4d913d0e8a14d2895c62df7bfddf92982b4bbd67cf/nodejs/node/issues/64299 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2a9d6e7e46453cee55792f4d913d0e8a14d2895c62df7bfddf92982b4bbd67cf/nodejs/node/issues/64299 |
| og:image:alt | Version main Platform macOS 26.5.0 Subsystem stream What steps will reproduce the bug? import { push } from 'stream/iter'; const { writer, readable } = push({ highWaterMark: 10 }); try { writer.wri... |
| 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 | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| 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 | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width