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) {
return function(node, from, to) {
each(node[propertyName], function(node) {
replace(node, from, to);
each(node[propertyName], function(subnode) {
replace(subnode, from, to);
});
};
}

Loading…
Cancel
Save