Skip to content

Commit

Permalink
lib: change var to let in lib/_stream_duplex.js
Browse files Browse the repository at this point in the history
PR-URL: #30297
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Anto Aravinth <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
Reviewed-By: Gireesh Punathil <[email protected]>
  • Loading branch information
vabole authored and MylesBorins committed Nov 17, 2019
1 parent 9cae205 commit 3e4a6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_stream_duplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 3e4a6a5

Please sign in to comment.