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 <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
BridgeAR authored and addaleax committed Jul 18, 2017
1 parent 7ed7b22 commit 8edde98
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 8edde98

Please sign in to comment.