aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/evaluate.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index f84436df..26b6e489 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -646,6 +646,29 @@ call_args: {
}
}
+call_args_drop_param: {
+ options = {
+ evaluate: true,
+ keep_fargs: false,
+ reduce_vars: true,
+ unused: true,
+ }
+ input: {
+ const a = 1;
+ console.log(a);
+ +function(a) {
+ return a;
+ }(a, b);
+ }
+ expect: {
+ const a = 1;
+ console.log(1);
+ +function() {
+ return 1;
+ }(b);
+ }
+}
+
in_boolean_context: {
options = {
booleans: true,