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
This commit is contained in:
kzc
2016-06-30 00:24:34 -04:00
committed by Richard van Velzen
parent 030611b729
commit 02c638209e
7 changed files with 30 additions and 19 deletions

View File

@@ -12,7 +12,8 @@ keep_properties: {
dot_properties: {
options = {
properties: true
properties: true,
screw_ie8: false
};
input: {
a["foo"] = "bar";