1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-11 10:07:54 -05:00
denoland-deno/tests/node_compat/test
Nathan Whitaker ebbc897b69
fix(ext/node): Reimplement StringDecoder to match node's behavior (#22933)
Fixes #22158.

Basically reimplements the whole `StringDecoder` with a much more direct
translation (read like one-to-one) of node's current logic. The old
implementation was closer to node's super old impl and it was too hard
to keep the code structure while matching the behavior of their new
logic.

This adds support for UTF-16LE, ascii, and latin1. 

This also enables the node_compat test, which now passes without
modification.
2024-03-15 17:24:13 -07:00
..
common chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
fixtures chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
internet chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
parallel fix(ext/node): Reimplement StringDecoder to match node's behavior (#22933) 2024-03-15 17:24:13 -07:00
pseudo-tty chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
pummel chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
sequential chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00