From 7e7a8165a820022d98b5189f2ee24428f0bf1d26 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 8edec86a3e3c96..db50c3d0ee7c19 100644 --- a/lib/internal/bootstrap/pre_execution.js +++ b/lib/internal/bootstrap/pre_execution.js @@ -372,7 +372,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