Skip to content
Open
Changes from all commits
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
3 changes: 3 additions & 0 deletions lib/internal/blob.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,9 @@ function createBlobReaderStream(reader) {
pending.reject(reason);
}
this.pendingPulls = [];
// Explicitly clear the reader wakeup callback to sever the GC reference
// between the active C++ handle and the pending JS stream.
reader.setWakeup(undefined);
},
// We set the highWaterMark to 0 because we do not want the stream to
// start reading immediately on creation. We want it to wait until read
Expand Down
Loading