diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-01-12 19:48:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-13 03:48:46 +0800 |
commit | c11a7489085c5a9c6a2f82be0f3b356a5dffa5a9 (patch) | |
tree | 213f2dd24148db2c11c013843c8be98220e2b4c6 /lib/compress.js | |
parent | 90017051f2bb707f1062f3399c7b8d7a58e8c7ba (diff) | |
download | tracifyjs-c11a7489085c5a9c6a2f82be0f3b356a5dffa5a9.tar.gz tracifyjs-c11a7489085c5a9c6a2f82be0f3b356a5dffa5a9.zip |
fix corner case in `merge_vars` (#4550)
fixes #4548
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index dde50e04..80dd7eab 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -4979,7 +4979,9 @@ merge(Compressor.prototype, { var marker = new TreeWalker(function(node) { if (node instanceof AST_Destructured) return; if (node instanceof AST_DefaultValue) { + push(); node.value.walk(tw); + pop(); node.name.walk(marker); } else if (node instanceof AST_DestructuredKeyVal) { if (node.key instanceof AST_Node) { |