From ec2e5fa3a2e5cf421aebd94b93c668b18e540c69 Mon Sep 17 00:00:00 2001 From: kzc Date: Wed, 21 Dec 2016 10:52:30 -0500 Subject: Have minify() and tests use figure_out_scope() as uglifyjs CLI does Clarify docs, help and tests for --support-ie8 and screw_ie8=false --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 1be63009..a8b55843 100644 --- a/README.md +++ b/README.md @@ -67,10 +67,13 @@ The available options are: JS that was generated from some other original code. --screw-ie8 Use this flag if you don't wish to support - Internet Explorer 6-8 quirks. + Internet Explorer 6/7/8. By default UglifyJS will not try to be IE-proof. - --support-ie8 Use this flag to support Internet Explorer 6-8 quirks. - Note: may break standards compliant `catch` identifiers. + --support-ie8 Use this flag to support Internet Explorer 6/7/8. + Equivalent to setting `screw_ie8: false` in `minify()` + for `compress`, `mangle` and `output` options. + Note: `--support-ie8` may generate incorrect code + for `try`/`catch` in ES5 compliant browsers. --expr Parse a single expression, rather than a program (for parsing JSON) -p, --prefix Skip prefix for original filenames that appear -- cgit v1.2.3