aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-11 13:15:55 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-11 13:15:55 +0300
commitda407d46c65eeaf4599b0b50fc0a8ab6ba28ecdf (patch)
tree944123717fe4cb6c46aa6ecaf583a0e0a7ea421f /bin
parent1579c0fb97bb781a624199decab92e19c77d74d6 (diff)
downloadtracifyjs-da407d46c65eeaf4599b0b50fc0a8ab6ba28ecdf.tar.gz
tracifyjs-da407d46c65eeaf4599b0b50fc0a8ab6ba28ecdf.zip
checkpoint
- discard statements with no side effects (unsafe? could be) - safer hoist_vars (needs some revamping of scope/mangling)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/uglifyjs23
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/uglifyjs2 b/bin/uglifyjs2
index 8009de5f..b3788364 100755
--- a/bin/uglifyjs2
+++ b/bin/uglifyjs2
@@ -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;