hoist_vars is pretty bad, it seems. cancelled it for now.

This commit is contained in:
Mihai Bazon
2012-09-10 22:40:18 +03:00
parent 6b9aeb5325
commit 1579c0fb97
2 changed files with 3 additions and 6 deletions

View File

@@ -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");

View File

@@ -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
});