From c2a1bceb773aab8875e0ffabf9f6b5199462f091 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 7 Apr 2017 17:06:01 +0800 Subject: fix `pure_getters` for chained property access (#1798) --- test/compress/pure_getters.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'test/compress') 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; + } +} -- cgit v1.2.3