Skip to content

Commit

Permalink
Fix global leak due to missing var declaration of l (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Feb 20, 2020
1 parent cf004f2 commit aabd78c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* Determine whether `node` can be reached by following `path`, starting at `ancestor`.
*/
function inPath(node, ancestor, path) {
var field, remainingPath, i;
var field, remainingPath, i, l;
if (path.length === 0) { return node === ancestor; }
if (ancestor == null) { return false; }
field = ancestor[path[0]];
Expand Down

0 comments on commit aabd78c

Please sign in to comment.