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 targos committed Dec 1, 2019
1 parent 4ec0b74 commit 0d8c58f
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 0d8c58f

Please sign in to comment.