diff --git a/lib/_stream_readable.js b/lib/_stream_readable.js index e33441971fe746..8f11e5db2ab7d4 100644 --- a/lib/_stream_readable.js +++ b/lib/_stream_readable.js @@ -669,7 +669,7 @@ Readable.prototype.unpipe = function(dest) { } // try to find the right one. - const index = state.pipes.indexOf(dest); + var index = state.pipes.indexOf(dest); if (index === -1) return this;