Skip to content

Commit

Permalink
test: change var to const in ./common
Browse files Browse the repository at this point in the history
PR-URL: #13732
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
  • Loading branch information
BridgeAR authored and Fishrock123 committed Jul 19, 2017
1 parent e959e2f commit ea63d7f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit ea63d7f

Please sign in to comment.