Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f85c3f1

Browse files
mscdexevanlucas
authored andcommittedMay 2, 2017
stream: fix permanent deoptimizations
PR-URL: #12456 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent cd7fda2 commit f85c3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/_stream_readable.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -669,7 +669,7 @@ Readable.prototype.unpipe = function(dest) {
669669
}
670670

671671
// try to find the right one.
672-
const index = state.pipes.indexOf(dest);
672+
var index = state.pipes.indexOf(dest);
673673
if (index === -1)
674674
return this;
675675

0 commit comments

Comments
 (0)
Please sign in to comment.