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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user