Skip to content

Commit e9c02c6

Browse files
committed
stream: fix permanent deoptimizations
PR-URL: #12456 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e283319 commit e9c02c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_stream_readable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ Readable.prototype.unpipe = function(dest) {
686686
}
687687

688688
// try to find the right one.
689-
const index = state.pipes.indexOf(dest);
689+
var index = state.pipes.indexOf(dest);
690690
if (index === -1)
691691
return this;
692692

0 commit comments

Comments
 (0)