diff --git a/src/emitter.js b/src/emitter.js index aa7edf2..ec391b0 100644 --- a/src/emitter.js +++ b/src/emitter.js @@ -724,10 +724,10 @@ PEG.compiler.emitter = function(ast) { semantic_and: function(node, context) { return formatCode( - '#{resultVar} = (function() {#{actionCode}})() ? "" : null;', + '#{resultVar} = (function() {#{node.code}})() ? "" : null;', { - actionCode: node.code, - resultVar: resultVar(context.resultIndex) + node: node, + resultVar: resultVar(context.resultIndex) } ); },