Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit f7877938486019aa89237f707742c826440c0a59 1 parent 088c78e
@dmajda dmajda authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/passes.js
View
4 src/passes.js
@@ -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);
});
};
}

0 comments on commit f787793

Please sign in to comment.
Something went wrong with that request. Please try again.