Skip to content

Commit

Permalink
test: fix permanent deoptimizations
Browse files Browse the repository at this point in the history
PR-URL: #12456
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
mscdex authored and evanlucas committed May 3, 2017
1 parent 1ac331b commit 7af2e79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7af2e79

Please sign in to comment.