aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-04-07 13:31:58 +0800
committerGitHub <noreply@github.com>2017-04-07 13:31:58 +0800
commit0f4cd73dcc5d8a936ae3630a7992dbcb44274136 (patch)
tree3c5724a3ef73c80868849800630c92d57d28b806 /README.md
parent281e882d27ace48c5c415f19292e2590dd4473dc (diff)
downloadtracifyjs-0f4cd73dcc5d8a936ae3630a7992dbcb44274136.tar.gz
tracifyjs-0f4cd73dcc5d8a936ae3630a7992dbcb44274136.zip
introduce "strict" to `pure_getters` (#1795)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index d57a15ce..d15f114c 100644
--- a/README.md
+++ b/README.md
@@ -411,6 +411,8 @@ to set `true`; it's effectively a shortcut for `foo=true`).
- `pure_getters` -- the default is `false`. If you pass `true` for
this, UglifyJS will assume that object property access
(e.g. `foo.bar` or `foo["bar"]`) doesn't have any side effects.
+ Specify `"strict"` to treat `foo.bar` as side-effect-free only when
+ `foo` is certain to not throw, i.e. not `null` or `undefined`.
- `pure_funcs` -- default `null`. You can pass an array of names and
UglifyJS will assume that those functions do not produce side