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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
mscdex authored and evanlucas committed May 3, 2017
1 parent caf6506 commit 7d0adc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_readable.js
Original file line number Diff line number Diff line change
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 7d0adc6

Please sign in to comment.