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); }