From b6da225799cd754e6696586e759218d7514fdd85 Mon Sep 17 00:00:00 2001 From: Brian White Date: Mon, 24 Apr 2017 02:21:42 -0400 Subject: [PATCH] test: fix permanent deoptimizations PR-URL: https://github.com/nodejs/node/pull/12456 Reviewed-By: Benjamin Gruenbaum Reviewed-By: James M Snell --- test/common.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/common.js b/test/common.js index 25a2d9c1d2fe0c..ca538a1961f8a6 100644 --- a/test/common.js +++ b/test/common.js @@ -385,7 +385,8 @@ exports.allowGlobals = allowGlobals; function leakedGlobals() { const leaked = []; - for (const val in global) + // eslint-disable-next-line no-var + for (var val in global) if (!knownGlobals.includes(global[val])) leaked.push(val);