From 35dc84859fc77566dc74bc05ff27bdb790612bae Mon Sep 17 00:00:00 2001 From: Susana Ferreira Date: Tue, 12 Nov 2019 16:13:19 +0000 Subject: [PATCH] util: replace var with let PR-URL: https://github.com/nodejs/node/pull/30439 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- lib/internal/util/comparisons.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/util/comparisons.js b/lib/internal/util/comparisons.js index b3256716c38b63..52cd11429e6ac6 100644 --- a/lib/internal/util/comparisons.js +++ b/lib/internal/util/comparisons.js @@ -59,7 +59,7 @@ function areSimilarFloatArrays(a, b) { if (a.byteLength !== b.byteLength) { return false; } - for (var offset = 0; offset < a.byteLength; offset++) { + for (let offset = 0; offset < a.byteLength; offset++) { if (a[offset] !== b[offset]) { return false; }