Permalink
Browse files

Fix incorrect variable name on two places

  • Loading branch information...
1 parent 4d50a37 commit 088c78e88cdb8d60098d7a8c99162647d5fdca06 @dmajda dmajda committed Aug 17, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/checks.js
  2. +1 −1 src/passes.js
View
@@ -66,7 +66,7 @@ PEG.compiler.checks = [
grammar:
function(node, appliedRules) {
for (var name in node.rules) {
- check(ast.rules[name], appliedRules);
+ check(node.rules[name], appliedRules);
}
},
View
@@ -32,7 +32,7 @@ PEG.compiler.passes = [
grammar:
function(node, from, to) {
for (var name in node.rules) {
- replace(ast.rules[name], from, to);
+ replace(node.rules[name], from, to);
}
},

0 comments on commit 088c78e

Please sign in to comment.