mirror of https://github.com/nodejs/node.git
stream: fix permanent deoptimizations
PR-URL: https://github.com/nodejs/node/pull/12456 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
e283319969
commit
e9c02c6762
|
@ -686,7 +686,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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue