From 0b64e45e41e6f69ed027837518ab27165155694a 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 0cb3edbf9ad7b4..a610395be99cbf 100644 --- a/lib/internal/process/main_thread_only.js +++ b/lib/internal/process/main_thread_only.js @@ -77,7 +77,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