Files
bun.sh/test/js/node
Dylan Conway 312a86fd43 fix writing UTF-16 with a trailing unpaired surrogate to process.stdout/stderr (#23444)
### What does this PR do?
Fixes `bun -p "process.stderr.write('Hello' +
String.fromCharCode(0xd800))"`.

Also fixes potential index out of bounds if there are many invalid
sequences.

This also affects `TextEncoder`.
### How did you verify your code works?
Added tests for edgecases

---------

Co-authored-by: Jarred Sumner <jarred@jarredsumner.com>
2025-10-10 03:48:04 -07:00
..
2025-08-27 06:39:11 -07:00
2025-09-27 00:27:23 -07:00
2025-09-11 17:53:06 -07:00
2025-10-09 19:11:08 -07:00