From c4fcd5b4ca8e816cafc842ce7d823f4c01c5d03b Mon Sep 17 00:00:00 2001 From: matijagaspar Date: Tue, 12 Nov 2019 16:11:16 +0100 Subject: [PATCH] lib: main_thread_only change var to let PR-URL: https://github.com/nodejs/node/pull/30398 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- lib/internal/process/main_thread_only.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/process/main_thread_only.js b/lib/internal/process/main_thread_only.js index 8af402c57a6cb0..072498d5fe3101 100644 --- a/lib/internal/process/main_thread_only.js +++ b/lib/internal/process/main_thread_only.js @@ -76,7 +76,7 @@ function wrapPosixCredentialSetters(credentials) { if (!Array.isArray(groups)) { throw new ERR_INVALID_ARG_TYPE('groups', 'Array', groups); } - for (var i = 0; i < groups.length; i++) { + for (let i = 0; i < groups.length; i++) { validateId(groups[i], `groups[${i}]`); } // Result is 0 on success. A positive integer indicates that the