Unverified Commit 45388f75 authored by Anna Henningsen's avatar Anna Henningsen Committed by Michaël Zasso
Browse files

src: warn about odd UTF-16 decoding function signature

Using a `uint16_t` sequence for UTF-16 processing would typically
imply that the sequence already contains the correct 16-bit
code units.

However, our API does not account for that. The previous comments
were somewhat misleading, since endianness is typically applied to
sequences of bytes, which is not something that this API works with.

PR-URL: https://github.com/nodejs/node/pull/22623


Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
parent 071d19a3
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment