Rename |node| -> |subnode| to avoid aliasing

redux
David Majda 14 years ago
parent 088c78e88c
commit f787793848

@ -22,8 +22,8 @@ PEG.compiler.passes = [
function replaceInSubnodes(propertyName) { function replaceInSubnodes(propertyName) {
return function(node, from, to) { return function(node, from, to) {
each(node[propertyName], function(node) { each(node[propertyName], function(subnode) {
replace(node, from, to); replace(subnode, from, to);
}); });
}; };
} }

Loading…
Cancel
Save