diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-04-07 13:31:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 13:31:58 +0800 |
commit | 0f4cd73dcc5d8a936ae3630a7992dbcb44274136 (patch) | |
tree | 3c5724a3ef73c80868849800630c92d57d28b806 /README.md | |
parent | 281e882d27ace48c5c415f19292e2590dd4473dc (diff) | |
download | tracifyjs-0f4cd73dcc5d8a936ae3630a7992dbcb44274136.tar.gz tracifyjs-0f4cd73dcc5d8a936ae3630a7992dbcb44274136.zip |
introduce "strict" to `pure_getters` (#1795)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |