From 875c6fb250feaa178d4d5363c381f061c69528d0 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 891c674a693cbf..420fc808416fbd 100644 --- a/test/common.js +++ b/test/common.js @@ -358,7 +358,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);