From fbcefdf523b2db8daa9de90d54def0cbb47e2617 Mon Sep 17 00:00:00 2001 From: David Majda Date: Sat, 7 Dec 2013 09:36:33 +0100 Subject: [PATCH] Fix |oneRuleGrammar| invocation At one call site, the |oneRuleGrammar| was called with 3 parameters but it only accepts 2. This commit removes the additional parameter. --- spec/parser.spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/parser.spec.js b/spec/parser.spec.js index 4c5570f..cb4322c 100644 --- a/spec/parser.spec.js +++ b/spec/parser.spec.js @@ -188,7 +188,7 @@ describe("PEG.js grammar parser", function() { var grammar = oneRuleGrammar(literalAbcd, { type: "initializer", code: " code " - }, null); + }); expect('{ code } start = "abcd"' ).toParseAs(grammar); expect('{ code }; start = "abcd"').toParseAs(grammar);