Title: stream/iter: fused stateless transforms do not normalize output between transforms · Issue #65366 · nodejs/node · GitHub
Open Graph Title: stream/iter: fused stateless transforms do not normalize output between transforms · Issue #65366 · nodejs/node
X Title: stream/iter: fused stateless transforms do not normalize output between transforms · Issue #65366 · nodejs/node
Description: Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { from, fromSync, pull, pullSync, text, textSync } from 'node:stream/iter'; const first = (chunks) => chunks === null ? null : new Uint8Array([65]); con...
Open Graph Description: Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { from, fromSync, pull, pullSync, text, textSync } from 'node:stream/iter'; const first = (chunks) => chunks ===...
X Description: Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { from, fromSync, pull, pullSync, text, textSync } from 'node:stream/iter'; const first = (chunks) =>...
Opengraph URL: https://github.com/nodejs/node/issues/65366
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"stream/iter: fused stateless transforms do not normalize output between transforms","articleBody":"### Version\n\nmain\n\n### Platform\n\n```text\nN/A\n```\n\n### Subsystem\n\nstream\n\n### What steps will reproduce the bug?\n\n```js\nimport { from, fromSync, pull, pullSync, text, textSync } from 'node:stream/iter';\n\nconst first = (chunks) =>\n chunks === null ? null : new Uint8Array([65]);\n\nconst asyncSecond = (chunks) => {\n if (chunks !== null)\n console.log('async received array:', Array.isArray(chunks));\n return chunks;\n};\n\nconst syncSecond = (chunks) => {\n if (chunks !== null)\n console.log('sync received array:', Array.isArray(chunks));\n return chunks;\n};\n\nawait text(pull(from('x'), first, asyncSecond));\ntextSync(pullSync(fromSync('x'), first, syncSecond));\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\nasync received array: true\nsync received array: true\n```\n\nThe first transform’s `Uint8Array` result should be normalized to a single-element `Uint8Array[]` batch before it is passed to the second transform.\n\n### What do you see instead?\n\n```console\nasync received array: false\nsync received array: false\n```\n\nThe second transform receives the raw `Uint8Array` returned by the first transform. Both fused async and synchronous paths normalize only after every transform in the run has executed.\n\n### Additional information\n\n_No response_","author":{"url":"https://github.com/trivikr","@type":"Person","name":"trivikr"},"datePublished":"2026-08-18T02:46:49Z","url":"https://github.com/nodejs/node/issues/65366"}
| 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:cfa22a39-7251-39ac-ac62-d593b84121ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E5F0:31D44E:665832:8B68E9:6AED2855 |
| html-safe-nonce | 2f2dbe5a72c280b70b19967fc34dddaa53cf32609fb22123c9219ae3a149db78 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNUYwOjMxRDQ0RTo2NjU4MzI6OEI2OEU5OjZBRUQyODU1IiwidmlzaXRvcl9pZCI6Ijg3MzIyNTY5NzIzMjYxMTk1MDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8c0b878759cb4422ea734ba924041636f0837bc71eb8da515f94aba29d635d31 |
| hovercard-subject-tag | issue:5177499879 |
| 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/65366/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c50fa31e14d79a86cf4973af30404a836d33eaf73e3b4535fb15d7c6dc7385b6/nodejs/node/issues/65366 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c50fa31e14d79a86cf4973af30404a836d33eaf73e3b4535fb15d7c6dc7385b6/nodejs/node/issues/65366 |
| og:image:alt | Version main Platform N/A Subsystem stream What steps will reproduce the bug? import { from, fromSync, pull, pullSync, text, textSync } from 'node:stream/iter'; const first = (chunks) => chunks ===... |
| 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 | 9d95365dda0576efe9b71f45807595e396bd0ca9286fba5367a05048e6ddf8f2 |
| 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 | 98b41fa4b5635ceb45a4c54320fced73817ff290 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width