Skip to content

stream: fix no data on partial decode

Before this commit, it was possible to push a partial character to a readable stream where it was decoded as an empty string and then added to the internal buffer. This caused the stream to not emit any data, even when the rest of the character bytes were pushed separately, because of a non-zero length check of the first chunk in the internal buffer.

Fixes: https://github.com/nodejs/node/issues/5223

Merge request reports

Loading