Skip to content
Commit Detail

Commit 9a380cf

Author
Yusufhan Saçak <yusufhansacak@icloud.com> 2026-02-07 13:44:38 +0300
Parents
79c79c8
Tree
8e5c4a4
feat(textdecoder): add x-user-defined encoding support

Implements the x-user-defined decoder per WHATWG Encoding Standard.

- Map bytes 0x00–0x7F to identical ASCII code points
- Map bytes 0x80–0xFF to Unicode PUA U+F780–U+F7FF
- Add dedicated XUserDefinedDecoder with ASCII fast path (no ICU)
- Register "x-user-defined" label
- Wire through TextDecoder constructor, getImpl(), and decodePtr()
- Add unit tests for decoding, streaming, and fatal mode

Fixes #6039

Files changed

4 files changed~4 modified