Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit f7877938486019aa89237f707742c826440c0a59 1 parent 088c78e
David Majda dmajda authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 src/passes.js
4 src/passes.js
@@ -22,8 +22,8 @@ PEG.compiler.passes = [
22 22
23 23 function replaceInSubnodes(propertyName) {
24 24 return function(node, from, to) {
25   - each(node[propertyName], function(node) {
26   - replace(node, from, to);
  25 + each(node[propertyName], function(subnode) {
  26 + replace(subnode, from, to);
27 27 });
28 28 };
29 29 }

0 comments on commit f787793

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