Skip to content
Permalink
Browse files

lib: change var to let in lib/_stream_duplex.js

PR-URL: #30297
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
  • Loading branch information
vabole authored and MylesBorins committed Nov 6, 2019
1 parent 58fca40 commit bcc00e1e88ad2aca7f72350955b5d2d5faca45a9
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/_stream_duplex.js
@@ -39,7 +39,7 @@ Object.setPrototypeOf(Duplex, Readable);
{
// Allow the keys array to be GC'ed.
const keys = Object.keys(Writable.prototype);
for (var v = 0; v < keys.length; v++) {
for (let v = 0; v < keys.length; v++) {
const method = keys[v];
if (!Duplex.prototype[method])
Duplex.prototype[method] = Writable.prototype[method];

0 comments on commit bcc00e1

Please sign in to comment.
You can’t perform that action at this time.