From 83f0fa921aa7c7c4f4bd64944b3ffcddec866e02 Mon Sep 17 00:00:00 2001 From: Julien Biezemans Date: Mon, 8 Oct 2012 16:18:52 +0200 Subject: [PATCH] Fix lexer instantiation in JavaScript --- js/lib/gherkin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/lib/gherkin.js b/js/lib/gherkin.js index 15855fa3..3fbf233e 100644 --- a/js/lib/gherkin.js +++ b/js/lib/gherkin.js @@ -2,7 +2,7 @@ * Creates a new Lexer for a specific language. */ exports.Lexer = function(lang) { - return require('./gherkin/lexer/' + lang).Lexer; + return require('./gherkin/lexer/' + lang); }; /** @@ -19,4 +19,4 @@ exports.connect = function(path) { next(); } }; -}; \ No newline at end of file +};