[Pkg-javascript-commits] [uglifyjs] 26/77: Pass mangle options to `figure_out_scope` and `compute_char_frequence`

Jonas Smedegaard dr at jones.dk
Tue May 19 00:02:29 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to tag v2.4.18
in repository uglifyjs.

commit 7f9bc9e863addac4bd17c09beb94a01faaea0aad
Author: Richard van Velzen <rvanvelzen1 at gmail.com>
Date:   Mon Jan 5 19:10:32 2015 +0100

    Pass mangle options to `figure_out_scope` and `compute_char_frequence`
    
    Fix #219. Because the options were not set and `toplevel` is `false` by default, some toplevel names would sometimes not be mangled correctly.
---
 tools/node.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/node.js b/tools/node.js
index 9e9c2c1..4bc8517 100644
--- a/tools/node.js
+++ b/tools/node.js
@@ -97,8 +97,8 @@ exports.minify = function(files, options) {
 
     // 3. mangle
     if (options.mangle) {
-        toplevel.figure_out_scope();
-        toplevel.compute_char_frequency();
+        toplevel.figure_out_scope(options.mangle);
+        toplevel.compute_char_frequency(options.mangle);
         toplevel.mangle_names(options.mangle);
     }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/uglifyjs.git



More information about the Pkg-javascript-commits mailing list