Files
scriptc/tests
Chris Tate 24ecefc4ac Keep stream buffer entries in the buffer's representation
setEncoding() converted the buffered entries once, but Readable.from's
lazy reader, the operators and compose added later object-mode entries in
the kind they arrived in, so a Buffer entry could be read as a string.
Every insertion now passes the entry's kind: Buffer entries decode through
the stream's decoder, entries that would mix strings and Buffers are
refused, and the buffer insert checks the kind. setEncoding() on an ended
stream also flushes the decoder's partial tail, as in Node 24.
2026-10-14 23:11:39 -05:00
..
2026-07-22 18:08:04 -05:00