1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-28 16:20:57 -05:00
denoland-deno/tests/node_compat
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
..
test fix(ext/node): Reimplement StringDecoder to match node's behavior (#22933) 2024-03-15 17:24:13 -07:00
common.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
config.jsonc fix(ext/node): Reimplement StringDecoder to match node's behavior (#22933) 2024-03-15 17:24:13 -07:00
deno.json chore: move test_util/std to tests/util/std (#22402) 2024-02-13 09:22:49 -07:00
polyfill_globals.js chore: move cli/tests/ -> tests/ (#22369) 2024-02-10 20:22:13 +00:00
runner.ts chore: use @std import instead of @test_util/std (#22398) 2024-02-13 02:05:10 +00:00
test.ts fix(ext/node): Reimplement StringDecoder to match node's behavior (#22933) 2024-03-15 17:24:13 -07:00
test_runner.rs chore: continue tests/ re-org (#22396) 2024-02-12 17:13:14 -07:00