hoist_vars is pretty bad, it seems. cancelled it for now.
This commit is contained in:
@@ -41,11 +41,8 @@ if (ARGS.h || ARGS.help) {
|
|||||||
|
|
||||||
var files = ARGS._.slice();
|
var files = ARGS._.slice();
|
||||||
|
|
||||||
if (files.length == 0) {
|
if (files.length == 0)
|
||||||
sys.error("ERROR: No input files.");
|
files = [ "-" ];
|
||||||
sys.puts(optimist.help());
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (files.indexOf("-") >= 0 && ARGS.source_map) {
|
if (files.indexOf("-") >= 0 && ARGS.source_map) {
|
||||||
sys.error("ERROR: Source map doesn't work with input from STDIN");
|
sys.error("ERROR: Source map doesn't work with input from STDIN");
|
||||||
|
|||||||
@@ -65,7 +65,7 @@ function Compressor(options, false_by_default) {
|
|||||||
booleans : !false_by_default,
|
booleans : !false_by_default,
|
||||||
loops : !false_by_default,
|
loops : !false_by_default,
|
||||||
hoist_funs : !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
|
warnings : true
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user