From 03c5693994cbb0e3b2676841468769214a7f7f3a Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Tue, 7 Nov 2017 14:40:39 -0700 Subject: [PATCH] Node 8 changed the .destroy method to ._destroy --- lib/file-operations.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/file-operations.js b/lib/file-operations.js index b497529a..7dd25d7b 100644 --- a/lib/file-operations.js +++ b/lib/file-operations.js @@ -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;