Commit 8917491
fix(http-body): keep emoji / surrogate pairs intact during error body truncation
Use Array.from() to count full code points instead of UTF-16 code
units, preventing lone surrogates in diagnostic output.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent 775ef96 commit 8917491
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| |||
0 commit comments