Fix incorrect variable name on two places

This commit is contained in:
David Majda 2010-08-17 20:44:24 +02:00
parent 4d50a37b14
commit 088c78e88c
2 changed files with 2 additions and 2 deletions

View file

@ -66,7 +66,7 @@ PEG.compiler.checks = [
grammar: grammar:
function(node, appliedRules) { function(node, appliedRules) {
for (var name in node.rules) { for (var name in node.rules) {
check(ast.rules[name], appliedRules); check(node.rules[name], appliedRules);
} }
}, },

View file

@ -32,7 +32,7 @@ PEG.compiler.passes = [
grammar: grammar:
function(node, from, to) { function(node, from, to) {
for (var name in node.rules) { for (var name in node.rules) {
replace(ast.rules[name], from, to); replace(node.rules[name], from, to);
} }
}, },