Commit c7ed2ff
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 c7ed2ffCopy full SHA for c7ed2ff
File tree
Expand file treeCollapse file tree
2 files changed
+4
-7
lines changedOpen diff view settings
Filter options
- lib/internal/webstreams
- test/wpt/status
Expand file treeCollapse file tree
2 files changed
+4
-7
lines changedOpen diff view settings
Collapse file
lib/internal/webstreams/encoding.js
Copy file name to clipboardExpand all lines: lib/internal/webstreams/encoding.js+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
| 23 | + |
23 | 24 | |
24 | 25 | |
25 | 26 | |
| ||
133 | 134 | |
134 | 135 | |
135 | 136 | |
| 137 | + |
| 138 | + |
| 139 | + |
136 | 140 | |
137 | 141 | |
138 | 142 | |
|
Collapse file
test/wpt/status/encoding.json
Copy file name to clipboardExpand all lines: test/wpt/status/encoding.json-7Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
66 | 66 | |
67 | 67 | |
68 | 68 | |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | 69 | |
77 | 70 | |
78 | 71 | |
|
0 commit comments