Commit 364cba6
committed
test: pin the single error for a lead surrogate pending at an odd end
The shared utf-16 decoder's end-of-queue step clears the lead byte and
the lead surrogate together and returns one error, so a stream ending
with both pending yields one U+FFFD, not two. Node 24 (full ICU) agrees
on utf-16le [0x00, 0xD8, 0x41].1 parent 0f45dc8 commit 364cba6
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
570 | 577 | | |
571 | 578 | | |
572 | 579 | | |
| |||
0 commit comments