Skip to content

Commit

Permalink
Merge pull request #245 from syrnick/master
Browse files Browse the repository at this point in the history
Fix global leaks
  • Loading branch information
zaach committed Oct 19, 2014
2 parents 2f3b4f6 + 18bcf72 commit f57a903
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/jison.js
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,7 @@ lrGeneratorMixin.generateTableCode = function (table) {
// Collect all non-frequent values into a remainder object
for (value in keys) {
if (value !== frequentValue) {
for (k = keys[value], i = 0, l = k.length; i < l; i++) {
for (var k = keys[value], i = 0, l = k.length; i < l; i++) {
keyValues.push(k[i] + ':' + value);
}
}
Expand All @@ -1220,7 +1220,7 @@ lrGeneratorMixin.generateTableCode = function (table) {
});

// Count occurrences of number lists
var lis;
var list;
var lists = {};
var listMatcher = /\[[0-9,]+\]/g;

Expand Down Expand Up @@ -1910,4 +1910,3 @@ return function Parser (g, options) {
};

})();

0 comments on commit f57a903

Please sign in to comment.