diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-10 22:40:18 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-10 22:40:18 +0300 |
commit | 1579c0fb97bb781a624199decab92e19c77d74d6 (patch) | |
tree | 565f32096c2c911ab7a274aee9d0957592cc7279 | |
parent | 6b9aeb5325203a9f4c8e3bdd6bd3f45f8520ee2e (diff) | |
download | tracifyjs-1579c0fb97bb781a624199decab92e19c77d74d6.tar.gz tracifyjs-1579c0fb97bb781a624199decab92e19c77d74d6.zip |
hoist_vars is pretty bad, it seems. cancelled it for now.
-rwxr-xr-x | bin/uglifyjs2 | 7 | ||||
-rw-r--r-- | lib/compress.js | 2 |
2 files changed, 3 insertions, 6 deletions
diff --git a/bin/uglifyjs2 b/bin/uglifyjs2 index e100b211..8009de5f 100755 --- a/bin/uglifyjs2 +++ b/bin/uglifyjs2 @@ -41,11 +41,8 @@ if (ARGS.h || ARGS.help) { var files = ARGS._.slice(); -if (files.length == 0) { - sys.error("ERROR: No input files."); - sys.puts(optimist.help()); - process.exit(1); -} +if (files.length == 0) + files = [ "-" ]; if (files.indexOf("-") >= 0 && ARGS.source_map) { sys.error("ERROR: Source map doesn't work with input from STDIN"); diff --git a/lib/compress.js b/lib/compress.js index e615699c..d071d211 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -65,7 +65,7 @@ function Compressor(options, false_by_default) { booleans : !false_by_default, loops : !false_by_default, hoist_funs : !false_by_default, - hoist_vars : !false_by_default, + //hoist_vars : !false_by_default, // XXX: turns out, this is really bad warnings : true }); |