From e1c5a6b58b73877cf77616c9737a094c0934ac05 Mon Sep 17 00:00:00 2001 From: Ilia Safronov Date: Wed, 6 Nov 2019 14:29:38 +0300 Subject: [PATCH] lib: change var to let in lib/_stream_duplex.js --- lib/_stream_duplex.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_stream_duplex.js b/lib/_stream_duplex.js index b96a0439f785fa..27686b1490f4e5 100644 --- a/lib/_stream_duplex.js +++ b/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];