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:
@@ -1178,8 +1178,8 @@ function OutputStream(options) {
|
||||
output.print_string(self.getValue(), self.quote);
|
||||
});
|
||||
DEFPRINT(AST_Number, function(self, output){
|
||||
if (use_asm) {
|
||||
output.print(self.start.literal);
|
||||
if (use_asm && self.start.raw != null) {
|
||||
output.print(self.start.raw);
|
||||
} else {
|
||||
output.print(make_num(self.getValue()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user