aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/compress/functions.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 29c438ae..5d0be0f9 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -2012,3 +2012,13 @@ issue_2898: {
}
expect_stdout: "2"
}
+
+deduplicate_parenthesis: {
+ input: {
+ ({}).a = b;
+ (({}).a = b)();
+ (function() {}).a = b;
+ ((function() {}).a = b)();
+ }
+ expect_exact: "({}).a=b;({}.a=b)();(function(){}).a=b;(function(){}.a=b)();"
+}