diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2017-04-07 17:06:01 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 17:06:01 +0800 |
commit | c2a1bceb773aab8875e0ffabf9f6b5199462f091 (patch) | |
tree | 07e991df35146f4a2f591140e3369c07b94d72fc /test/compress | |
parent | e3c9c22c757112327b83f598b124690baf13ac52 (diff) | |
download | tracifyjs-c2a1bceb773aab8875e0ffabf9f6b5199462f091.tar.gz tracifyjs-c2a1bceb773aab8875e0ffabf9f6b5199462f091.zip |
fix `pure_getters` for chained property access (#1798)
Diffstat (limited to 'test/compress')
-rw-r--r-- | test/compress/pure_getters.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/compress/pure_getters.js b/test/compress/pure_getters.js index c2dcb95b..846b53c3 100644 --- a/test/compress/pure_getters.js +++ b/test/compress/pure_getters.js @@ -106,3 +106,16 @@ unsafe_reduce_vars: { (void 0).prop; } } + +chained: { + options = { + pure_getters: "strict", + side_effects: true, + } + input: { + a.b.c; + } + expect: { + a.b.c; + } +} |