From 44852fa6b4c97dada743629e45efae9b34de977f Mon Sep 17 00:00:00 2001 From: David Majda Date: Fri, 20 Apr 2012 12:19:49 +0200 Subject: [PATCH] Pass |options| to compiler passes --- src/compiler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler.js b/src/compiler.js index 320d3d9..5c1fbc7 100644 --- a/src/compiler.js +++ b/src/compiler.js @@ -21,7 +21,7 @@ PEG.compiler = { var that = this; each(this.appliedPassNames, function(passName) { - that.passes[passName](ast); + that.passes[passName](ast, options); }); var source = this.emitter(ast, options);