src/compiler.js: Fix variable redefinition

Fixes the following JSHint error:

  ./src/compiler.js: line 23, col 16, 'i' is already defined.
redux
David Majda 13 years ago
parent bc4821581c
commit cc4910d9b9

@ -16,11 +16,13 @@ PEG.compiler = {
"stackDepths" "stackDepths"
]; ];
for (var i = 0; i < CHECK_NAMES.length; i++) { var i;
for (i = 0; i < CHECK_NAMES.length; i++) {
this.checks[CHECK_NAMES[i]](ast); this.checks[CHECK_NAMES[i]](ast);
} }
for (var i = 0; i < PASS_NAMES.length; i++) { for (i = 0; i < PASS_NAMES.length; i++) {
ast = this.passes[PASS_NAMES[i]](ast); ast = this.passes[PASS_NAMES[i]](ast);
} }

Loading…
Cancel
Save