aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-19 23:47:42 +0800
committerGitHub <noreply@github.com>2018-01-19 23:47:42 +0800
commit069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce (patch)
tree5c14f7b08aac48b1d8655ccac4faa08356d3251b /README.md
parent3e7873217cad8b6f67839cb06d1e126ca231bc42 (diff)
downloadtracifyjs-069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce.tar.gz
tracifyjs-069df27bf18247a3e2f1d1a4abd0ee4fe28ef0ce.zip
enable `unsafe` for `test/ufuzz.js` (#2819)
- introduce `unsafe_undefined` - safer `.toString()` compression Miscellaneous - rename `unsafe_Function`
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index df90d1ca..99e33af7 100644
--- a/README.md
+++ b/README.md
@@ -737,7 +737,7 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
comparison are switching. Compression only works if both `comparisons` and
`unsafe_comps` are both set to true.
-- `unsafe_Func` (default: `false`) -- compress and mangle `Function(args, code)`
+- `unsafe_Function` (default: `false`) -- compress and mangle `Function(args, code)`
when both `args` and `code` are string literals.
- `unsafe_math` (default: `false`) -- optimize numerical expressions like
@@ -749,6 +749,10 @@ If you're using the `X-SourceMap` header instead, you can just omit `sourceMap.u
- `unsafe_regexp` (default: `false`) -- enable substitutions of variables with
`RegExp` values the same way as if they are constants.
+- `unsafe_undefined` (default: `false`) -- substitute `void 0` if there is a
+ variable named `undefined` in scope (variable name will be mangled, typically
+ reduced to a single character)
+
- `unused` (default: `true`) -- drop unreferenced functions and variables (simple
direct variable assignments do not count as references unless set to `"keep_assign"`)
@@ -922,9 +926,6 @@ when this flag is on:
- `new Object()` → `{}`
- `String(exp)` or `exp.toString()` → `"" + exp`
- `new Object/RegExp/Function/Error/Array (...)` → we discard the `new`
-- `void 0` → `undefined` (if there is a variable named "undefined" in
- scope; we do it because the variable name will be mangled, typically
- reduced to a single character)
### Conditional compilation