aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-04-07 17:06:01 +0800
committerGitHub <noreply@github.com>2017-04-07 17:06:01 +0800
commitc2a1bceb773aab8875e0ffabf9f6b5199462f091 (patch)
tree07e991df35146f4a2f591140e3369c07b94d72fc /test/compress
parente3c9c22c757112327b83f598b124690baf13ac52 (diff)
downloadtracifyjs-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.js13
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;
+ }
+}