src/compiler.js: Fix variable redefinition
Fixes the following JSHint error: ./src/compiler.js: line 23, col 16, 'i' is already defined.
This commit is contained in:
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…
Reference in a new issue