From e7f1d57cdf201a2d5ba59ae2b3eea3a3cf0c2975 Mon Sep 17 00:00:00 2001 From: Vladimir Adamic Date: Tue, 12 Nov 2019 15:34:10 +0000 Subject: [PATCH] test: replace var with let in pre_execution.js PR-URL: https://github.com/nodejs/node/pull/30411 Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Ruben Bridgewater Reviewed-By: Trivikram Kamat --- lib/internal/bootstrap/pre_execution.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/bootstrap/pre_execution.js b/lib/internal/bootstrap/pre_execution.js index c7e9e9433aa8d4..2aa2a3b46c5fc1 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -364,7 +364,7 @@ function initializePolicy() { const realIntegrities = new Map(); const integrityEntries = SRI.parse(experimentalPolicyIntegrity); let foundMatch = false; - for (var i = 0; i < integrityEntries.length; i++) { + for (let i = 0; i < integrityEntries.length; i++) { const { algorithm, value: expected