Add proper support for "use asm"; blocks. Disable -c optimization within "use asm"; sections and preserve floating point literals in their original form. Non-asm.js sections are optimized as before. Asm.js sections can still be mangled and minified of whitespace. No special command line flags are required.
This commit is contained in:
@@ -1149,6 +1149,9 @@ function parse($TEXT, options) {
|
||||
break;
|
||||
case "num":
|
||||
ret = new AST_Number({ start: tok, end: tok, value: tok.value });
|
||||
var value_string = $TEXT.substring(tok.pos, tok.endpos);
|
||||
if (value_string.indexOf('.') >= 0)
|
||||
ret.value_string = value_string;
|
||||
break;
|
||||
case "string":
|
||||
ret = new AST_String({
|
||||
|
||||
Reference in New Issue
Block a user