Commit 735cf65
committed
fix: flush TextDecoder on stream end to prevent silent data loss
When using decoder.decode(value, { stream: true }), the TextDecoder may
hold incomplete multi-byte UTF-8 bytes internally. Without flushing on
EOF, those trailing bytes were silently dropped — a regression from the
previous behavior which would at minimum emit replacement characters.1 parent 9d91e76 commit 735cf65
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
0 commit comments