aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-07-10 21:11:10 +0100
committerGitHub <noreply@github.com>2021-07-11 04:11:10 +0800
commitd147d5d7f0bc61b1284a18a31eaa41c208a278ea (patch)
tree735c1a32a787dd09d3096b63b79e0d23ec9825d8 /test
parentaae1fcd12d1dbd656f4225458a787d5b06f9222b (diff)
downloadtracifyjs-d147d5d7f0bc61b1284a18a31eaa41c208a278ea.tar.gz
tracifyjs-d147d5d7f0bc61b1284a18a31eaa41c208a278ea.zip
fix corner case in `inline` (#5068)
fixes #5067
Diffstat (limited to 'test')
-rw-r--r--test/compress/functions.js15
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: {}
+}
/td> 2021-03-10file-systems: 'mount-file-system' preserves the right mount flags....Ludovic Courtès 2021-02-25file-systems: 'mount-file-system' preserves source flags for bind mounts....Ludovic Courtès