Title: TextDecoder defaults to stream: true instead of false with null options · Issue #61411 · nodejs/node · GitHub
Open Graph Title: TextDecoder defaults to stream: true instead of false with null options · Issue #61411 · nodejs/node
X Title: TextDecoder defaults to stream: true instead of false with null options · Issue #61411 · nodejs/node
Description: > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '' For any multi-byte encoding except utf-8 fast path Should be: > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '�' This code here is wrong: node/lib/intern...
Open Graph Description: > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '' For any multi-byte encoding except utf-8 fast path Should be: > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '�' ...
X Description: > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '' For any multi-byte encoding except utf-8 fast path Should be: > new TextDecoder('utf-16le').decode(U...
Opengraph URL: https://github.com/nodejs/node/issues/61411
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TextDecoder defaults to stream: true instead of false with null options","articleBody":"```js\n\u003e new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null)\n''\n```\n\nFor any multi-byte encoding except utf-8 fast path\n\nShould be:\n```js\n\u003e new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null)\n'�'\n```\n\nThis code here is wrong:\nhttps://github.com/nodejs/node/blob/8365edcbd0d98fdd79993a61302e35d299c3d557/lib/internal/encoding.js#L475-L477\n\nWhen options is `null` (instead of default empty object), `flags` is `0`, but should be `CONVERTER_FLAGS_FLUSH`\n\nOverall, the flags-based logic is too complex and convoluted\n\nWill be fixed in #61409 ","author":{"url":"https://github.com/ChALkeR","@type":"Person","name":"ChALkeR"},"datePublished":"2026-01-17T14:43:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/61411/node/issues/61411"}
| 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:02d5f172-3989-c4b5-967d-3396c6e6bd1c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B67A:1A0CEA:AC6A93:EA315E:6A4C8E70 |
| html-safe-nonce | 3f565e194240d0cf95b08797e601c310c91d31452f5d17bcec1bce6ee2762c8d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjdBOjFBMENFQTpBQzZBOTM6RUEzMTVFOjZBNEM4RTcwIiwidmlzaXRvcl9pZCI6IjY2NDI1ODY5ODE0Mzg4ODU0ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b9bdb525fec7406cec2106cfe1210f53af6bec301bfa7682efc334c71f3dba50 |
| hovercard-subject-tag | issue:3825317928 |
| 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/61411/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd12a715f3ed9ce30eefd9f5f1c94fe29fe693b380d44dd66c68358767e08fef/nodejs/node/issues/61411 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd12a715f3ed9ce30eefd9f5f1c94fe29fe693b380d44dd66c68358767e08fef/nodejs/node/issues/61411 |
| og:image:alt | > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '' For any multi-byte encoding except utf-8 fast path Should be: > new TextDecoder('utf-16le').decode(Uint8Array.of(0x80), null) '�' ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ChALkeR |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width