stream: handle undefined chunks correctly in decode stream · nodejs/node@c7ed2ff · GitHub
Skip to content

Commit c7ed2ff

Browse files
Nahee-Parktargos
authored andcommitted
stream: handle undefined chunks correctly in decode stream
Align TextDecoderStream behavior with WPT requirements by treating undefined chunks as errors. This change ensures that TextDecoderStream properly handles unexpected chunk types and throws an error when receiving undefined input. This update addresses the failing WPT for decode stream error handling. PR-URL: #55153 Reviewed-By: Mattias Buelens <mattias@buelens.com> Reviewed-By: Matthew Aitken <maitken033380023@gmail.com>
1 parent aaea394 commit c7ed2ff

2 files changed

Lines changed: 4 additions & 7 deletions

File tree

lib/internal/webstreams/encoding.js

Lines changed: 4 additions & 0 deletions

test/wpt/status/encoding.json

Lines changed: 0 additions & 7 deletions

0 commit comments

Comments
 (0)