From f7877938486019aa89237f707742c826440c0a59 Mon Sep 17 00:00:00 2001 From: David Majda Date: Tue, 17 Aug 2010 20:53:13 +0200 Subject: [PATCH] Rename |node| -> |subnode| to avoid aliasing --- src/passes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/passes.js b/src/passes.js index b7ba038..2d303ec 100644 --- a/src/passes.js +++ b/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); }); }; }