Commit Graph

6 Commits

Author SHA1 Message Date
Stefan Bethke
9c6036bd71 Factor out the escaping of characters that are not XML-safe into its own output option xml_safe 2016-10-04 11:38:35 +02:00
Stefan Bethke
9ba2bbed46 Add \uFFFE to tests. 2016-10-01 17:50:25 +02:00
Stefan Bethke
4e98b220da Fix test case for added un-escaped characters 2016-10-01 13:29:11 +02:00
kzc
02c638209e 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
2016-06-30 21:49:48 +02:00
David Bau
f99b7b630d Escape null characters as \0 unless followed by 0-7. 2016-06-12 14:32:32 +02:00
kzc
07bb7262d0 Escape all ASCII control characters within strings when using ascii_only.
Fixes #1017.

Tab characters within strings are now output as `\t` in all output modes.
2016-03-24 11:51:54 -04:00