checkpoint

- discard statements with no side effects (unsafe? could be)
- safer hoist_vars (needs some revamping of scope/mangling)
This commit is contained in:
Mihai Bazon
2012-09-11 13:15:55 +03:00
parent 1579c0fb97
commit da407d46c6
4 changed files with 110 additions and 31 deletions

View File

@@ -69,6 +69,7 @@ var output = UglifyJS.OutputStream({
files = files.map(do_file_1);
files = files.map(do_file_2);
UglifyJS.base54.sort();
files.forEach(do_file_3);
if (ARGS.v) {
sys.error("BASE54 digits: " + UglifyJS.base54.get());
@@ -124,7 +125,7 @@ function do_file_1(file) {
function do_file_2(ast) {
time_it("scope", function(){
//ast.figure_out_scope();
ast.figure_out_scope();
ast.compute_char_frequency();
});
return ast;