From ea63d7f4442c5e1b30369d781f9b6eb62fdb23e3 Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Mon, 19 Jun 2017 17:57:02 +0200 Subject: [PATCH] test: change var to const in ./common PR-URL: https://github.com/nodejs/node/pull/13732 Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann --- test/common/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/common/index.js b/test/common/index.js index 6e910881523e99..5c820211d72033 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -428,8 +428,7 @@ exports.allowGlobals = allowGlobals; function leakedGlobals() { const leaked = []; - // eslint-disable-next-line no-var - for (var val in global) { + for (const val in global) { if (!knownGlobals.includes(global[val])) { leaked.push(val); }