Fix issue #62.

When the input is still a scalar but not a string, the parser does not correctly call the tokenizer.
This commit is contained in:
Richard van Velzen 2012-12-11 09:17:53 +01:00
parent 6064bea3db
commit 4790f96482

View File

@ -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,