Skip to content

Commit 7d0adc6

Browse files
mscdexevanlucas
authored andcommitted
stream: fix permanent deoptimizations
PR-URL: #12456 Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent caf6506 commit 7d0adc6

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)