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:
Brian White 2017-04-24 02:20:38 -04:00
parent e283319969
commit e9c02c6762
No known key found for this signature in database
GPG Key ID: 606D7358F94DA209
1 changed files with 1 additions and 1 deletions

View File

@ -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;