aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRichard van Velzen <rvanvelzen1@gmail.com>2015-01-05 19:10:32 +0100
committerRichard van Velzen <rvanvelzen1@gmail.com>2015-01-05 19:10:32 +0100
commit7f9bc9e863addac4bd17c09beb94a01faaea0aad (patch)
tree1baf62a5924947690e38e066d0cdc866436831c9 /tools
parent13219cebcb11f95fdaa77af653e96ac42e7e6dcc (diff)
downloadtracifyjs-7f9bc9e863addac4bd17c09beb94a01faaea0aad.tar.gz
tracifyjs-7f9bc9e863addac4bd17c09beb94a01faaea0aad.zip
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.
Diffstat (limited to 'tools')
-rw-r--r--tools/node.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/node.js b/tools/node.js
index 9e9c2c14..4bc8517b 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);
}