From 593677d2ff04f61a2230c18722ec89b820ee0307 Mon Sep 17 00:00:00 2001 From: kzc Date: Mon, 5 Oct 2015 19:51:09 -0400 Subject: 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. --- bin/uglifyjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/uglifyjs') diff --git a/bin/uglifyjs b/bin/uglifyjs index fbb053d8..00342b8f 100755 --- a/bin/uglifyjs +++ b/bin/uglifyjs @@ -401,7 +401,7 @@ async.eachLimit(files, 1, function (file, cb) { writeNameCache("props", cache); })(); - var SCOPE_IS_NEEDED = COMPRESS || MANGLE || ARGS.lint; + var SCOPE_IS_NEEDED = COMPRESS || MANGLE || BEAUTIFY || ARGS.lint; var TL_CACHE = readNameCache("vars"); if (SCOPE_IS_NEEDED) { -- cgit v1.2.3