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:
parent
6064bea3db
commit
4790f96482
|
|
@ -589,7 +589,7 @@ function parse($TEXT, options) {
|
||||||
});
|
});
|
||||||
|
|
||||||
var S = {
|
var S = {
|
||||||
input : typeof $TEXT == "string" ? tokenizer($TEXT, options.filename) : $TEXT,
|
input : typeof $TEXT != "object" ? tokenizer($TEXT, options.filename) : $TEXT,
|
||||||
token : null,
|
token : null,
|
||||||
prev : null,
|
prev : null,
|
||||||
peeked : null,
|
peeked : null,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user