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.
|
// try to find the right one.
|
||||||
const index = state.pipes.indexOf(dest);
|
var index = state.pipes.indexOf(dest);
|
||||||
if (index === -1)
|
if (index === -1)
|
||||||
return this;
|
return this;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user