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) {
|
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…
Reference in a new issue