diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2020-08-24 07:57:26 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 14:57:26 +0800 |
commit | 0eb0c9b388a17fbadd9f74a15effe7477695d5e6 (patch) | |
tree | 8e6882a2ac25db8928c081b54a75306367121117 /lib/compress.js | |
parent | 7dc61cdc895d055edfa9b1d82d17688ad3a57f1c (diff) | |
download | tracifyjs-0eb0c9b388a17fbadd9f74a15effe7477695d5e6.tar.gz tracifyjs-0eb0c9b388a17fbadd9f74a15effe7477695d5e6.zip |
fix corner case in `evaluate` (#4068)
fixes #4067
Diffstat (limited to 'lib/compress.js')
-rw-r--r-- | lib/compress.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/compress.js b/lib/compress.js index 3291f167..acc85021 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -3568,6 +3568,7 @@ merge(Compressor.prototype, { escaped[0].walk(new TreeWalker(function(node) { if (found) return true; if (node === ref) return found = true; + if (node instanceof AST_Scope) return true; })); return found; default: |