Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: zlib
  • Loading branch information
ronag committed Apr 10, 2020
commit 8cf4a58389c2f0fe9a281d7a0ff04f61d9c5513c
2 changes: 2 additions & 0 deletions lib/_stream_transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Transform.prototype._transform = function(chunk, encoding, callback) {

Transform.prototype._write = function(chunk, encoding, callback) {
const rState = this._readableState;
const wState = this._writableState;
const length = rState.length;

this._transform(chunk, encoding, (err, val) => {
Expand All @@ -143,6 +144,7 @@ Transform.prototype._write = function(chunk, encoding, callback) {
}

if (
wState.ended ||
length === rState.length ||
rState.length < rState.highWaterMark ||
rState.length === 0
Expand Down