diff options
author | kzc <zaxxon2011@gmail.com> | 2016-06-30 00:24:34 -0400 |
---|---|---|
committer | Richard van Velzen <rvanvelzen1@gmail.com> | 2016-06-30 21:49:48 +0200 |
commit | 02c638209ee22816b1324ff0c0f47b27db1336af (patch) | |
tree | ab0477bc05a88c73e818b059c3c23baa34b48508 /lib/scope.js | |
parent | 030611b729af46d2239bd09c95f88e708660f254 (diff) | |
download | tracifyjs-02c638209ee22816b1324ff0c0f47b27db1336af.tar.gz tracifyjs-02c638209ee22816b1324ff0c0f47b27db1336af.zip |
Enable --screw-ie8 by default.
catch identifier is mangled correctly for ES5 standards-compliant JS engines by default.
Unconditionally use the ie8 if/do-while workaround whether or not --screw-ie8 is enabled.
To support non-standard ie8 javascript use: uglifyjs --support-ie8
Diffstat (limited to 'lib/scope.js')
-rw-r--r-- | lib/scope.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/scope.js b/lib/scope.js index d07eca12..7ae87072 100644 --- a/lib/scope.js +++ b/lib/scope.js @@ -88,7 +88,7 @@ SymbolDef.prototype = { AST_Toplevel.DEFMETHOD("figure_out_scope", function(options){ options = defaults(options, { - screw_ie8: false, + screw_ie8: true, cache: null }); @@ -377,7 +377,7 @@ AST_Toplevel.DEFMETHOD("_default_mangler_options", function(options){ eval : false, sort : false, // Ignored. Flag retained for backwards compatibility. toplevel : false, - screw_ie8 : false, + screw_ie8 : true, keep_fnames : false }); }); |