Skip to content

Commit

Permalink
Node 8 changed the .destroy method to ._destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Nov 8, 2017
1 parent b82b525 commit 03c5693
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/file-operations.js
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ WriteStream.prototype.open = function() {
// Use our `end` method since it is patched for flush
WriteStream.prototype.destroySoon = WriteStream.prototype.end;
// Use node's `fs.WriteStream` methods
WriteStream.prototype._destroy = fs.WriteStream.prototype._destroy;
WriteStream.prototype.destroy = fs.WriteStream.prototype.destroy;
WriteStream.prototype.close = fs.WriteStream.prototype.close;

Expand Down

0 comments on commit 03c5693

Please sign in to comment.