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
Update lib/net.js
Co-authored-by: Antoine du Hamel <[email protected]>
  • Loading branch information
ronag and aduh95 authored Nov 8, 2020
commit fef1845dabf584d3e3020fb328758bea8f0b9572
2 changes: 1 addition & 1 deletion lib/net.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ function afterShutdown() {
// is overly vague, and makes it seem like the user's code is to blame.
function writeAfterFIN(chunk, encoding, cb) {
if (!this.writabledEnded) {
return stream.Duplex.prototype.write.call(this, chunk, encoding, cb);
return ReflectApply(stream.Duplex.prototype.write, this, [chunk, encoding, cb]);
}

if (typeof encoding === 'function') {
Expand Down