diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-05-27 14:02:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 21:02:48 +0800 |
commit | 7840746bd95c965409ba7e6dbbd291a88ed64f83 (patch) | |
tree | daa27629a66911e70b7e3ee02ea11fa968c8435d /lib/compress.js | |
parent | 49ea629f3f33387ead05639e81eb82b5d2915de6 (diff) | |
download | tracifyjs-7840746bd95c965409ba7e6dbbd291a88ed64f83.tar.gz tracifyjs-7840746bd95c965409ba7e6dbbd291a88ed64f83.zip |
fix corner case in `collapse_vars` (#3928)
fixes #3927
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js index 644746e4..cc2d1ecb 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1172,7 +1172,7 @@ merge(Compressor.prototype, { scope = node; break; } else if (node instanceof AST_Try) { - in_try = node; + if (!in_try) in_try = node; } } while (node = compressor.parent(level++)); } |