diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-05-30 05:00:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-30 12:00:32 +0800 |
commit | 23b9f36bd83e95c36a12059546098f10452b56ba (patch) | |
tree | 436e66b4fc032193cf676991b988208d24b45c6c /lib/compress.js | |
parent | 7e88d52faeb7032f54e9526b85042f06098e71b9 (diff) | |
download | tracifyjs-23b9f36bd83e95c36a12059546098f10452b56ba.tar.gz tracifyjs-23b9f36bd83e95c36a12059546098f10452b56ba.zip |
fix corner case in `hoist_props` (#4986)
fixes #4985
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 7ea93ecd..73f78aff 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -7432,7 +7432,8 @@ merge(Compressor.prototype, { && all(right.properties, can_hoist_property) && all(def.references, function(ref) { return ref.fixed_value() === right; - }); + }) + && can_drop_symbol(sym, compressor); } }); |