Fix output for "use asm" code from SpiderMonkey AST

(will only work properly if the SM tree contains "raw" properties for
Literal number nodes)
This commit is contained in:
Mihai Bazon
2015-11-12 12:18:25 +02:00
parent c898a26117
commit 08623aa6a7
4 changed files with 18 additions and 8 deletions

View File

@@ -286,7 +286,7 @@ function tokenizer($TEXT, filename, html5_comments, shebang) {
file : filename
};
if (/^(?:num|string|regexp)$/i.test(type)) {
ret.literal = $TEXT.substring(ret.pos, ret.endpos);
ret.raw = $TEXT.substring(ret.pos, ret.endpos);
}
if (!is_comment) {
ret.comments_before = S.comments_before;