node
node copied to clipboard
doc: document watermark string behavior
Bikeshedding/doc suggestions (should we edit it in other places like (readableLength/writableLength?) welcome
ping @lpinca @nodejs/streams
Documents that we calculate the highWaterMark value of streams operating on strings using the number of UTF-16 code units.
Fixes: https://github.com/nodejs/node/issues/52818
I'm not sure if the "but not decoding" bit is sufficient, it might be a bit too generic for someone not familiar with the implementation, but I can't think of anything better to suggest.
(3[+1] approving reviews; no failed tests)
Landed in 761d2ce43cc5c996f4bdc5b873384eb4f2346488