From 4790f96482f5794e66ad495ee65a3bf5a2cfba35 Mon Sep 17 00:00:00 2001 From: Richard van Velzen Date: Tue, 11 Dec 2012 09:17:53 +0100 Subject: [PATCH] Fix issue #62. When the input is still a scalar but not a string, the parser does not correctly call the tokenizer. --- lib/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse.js b/lib/parse.js index ffdd7a53..2f4bea7d 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -589,7 +589,7 @@ function parse($TEXT, options) { }); var S = { - input : typeof $TEXT == "string" ? tokenizer($TEXT, options.filename) : $TEXT, + input : typeof $TEXT != "object" ? tokenizer($TEXT, options.filename) : $TEXT, token : null, prev : null, peeked : null,