should not expose base54.sort() in the API docs, I think
authorMihai Bazon <mihai@bazon.net>
Mon, 8 Oct 2012 10:37:27 +0000 (13:37 +0300)
committerMihai Bazon <mihai@bazon.net>
Mon, 8 Oct 2012 10:37:27 +0000 (13:37 +0300)
bin/uglifyjs2
lib/scope.js

index ef87b65..b3b00a7 100755 (executable)
@@ -243,7 +243,6 @@ if (SCOPE_IS_NEEDED) {
         TOPLEVEL.figure_out_scope();
         if (MANGLE) {
             TOPLEVEL.compute_char_frequency();
-            UglifyJS.base54.sort();
         }
     });
 }
index d926d4d..67ef267 100644 (file)
@@ -467,6 +467,7 @@ AST_Toplevel.DEFMETHOD("compute_char_frequency", function(){
             base54.consider(node.property);
     });
     this.walk(tw);
+    base54.sort();
 });
 
 var base54 = (function() {