diff options
author | Alex Lam S.L <alexlamsl@gmail.com> | 2021-07-10 21:11:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-11 04:11:10 +0800 |
commit | d147d5d7f0bc61b1284a18a31eaa41c208a278ea (patch) | |
tree | 735c1a32a787dd09d3096b63b79e0d23ec9825d8 /test | |
parent | aae1fcd12d1dbd656f4225458a787d5b06f9222b (diff) | |
download | tracifyjs-d147d5d7f0bc61b1284a18a31eaa41c208a278ea.tar.gz tracifyjs-d147d5d7f0bc61b1284a18a31eaa41c208a278ea.zip |
fix corner case in `inline` (#5068)
fixes #5067
Diffstat (limited to 'test')
-rw-r--r-- | test/compress/functions.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js index 7c6ebe03..a4a876fa 100644 --- a/test/compress/functions.js +++ b/test/compress/functions.js @@ -6398,3 +6398,18 @@ issue_5061_2: { "bar", ] } + +issue_5067: { + options = { + inline: true, + reduce_vars: true, + toplevel: true, + unused: true, + } + input: { + var f = function() { + f(); + }; + } + expect: {} +} |