aboutsummaryrefslogtreecommitdiff
path: root/test/compress/default-values.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/default-values.js')
-rw-r--r--test/compress/default-values.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/compress/default-values.js b/test/compress/default-values.js
index 28cc46f0..13d4a18c 100644
--- a/test/compress/default-values.js
+++ b/test/compress/default-values.js
@@ -568,6 +568,20 @@ retain_empty_iife: {
node_version: ">=6"
}
+drop_new_function: {
+ options = {
+ side_effects: true,
+ }
+ input: {
+ new function(a = console.log("PASS")) {}();
+ }
+ expect: {
+ void console.log("PASS");
+ }
+ expect_stdout: "PASS"
+ node_version: ">=6"
+}
+
retain_fargs: {
options = {
unused: true,