Rename |node| -> |subnode| to avoid aliasing
This commit is contained in:
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…
Reference in a new issue