Skip to content

Commit

Permalink
stream: fix permanent deoptimizations
Browse files Browse the repository at this point in the history
PR-URL: #12456
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and evanlucas committed May 2, 2017
1 parent 0f58599 commit 61a47da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_readable.js
Expand Up @@ -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;

Expand Down

0 comments on commit 61a47da

Please sign in to comment.