aboutsummaryrefslogtreecommitdiff
path: root/test/compress/arrows.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/arrows.js')
-rw-r--r--test/compress/arrows.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/compress/arrows.js b/test/compress/arrows.js
index 57d8d395..fbb18b95 100644
--- a/test/compress/arrows.js
+++ b/test/compress/arrows.js
@@ -456,6 +456,7 @@ collapse_property_lambda: {
drop_return: {
options = {
+ arrows: true,
side_effects: true,
}
input: {
@@ -474,6 +475,21 @@ drop_return: {
node_version: ">=4"
}
+drop_value: {
+ options = {
+ arrows: true,
+ side_effects: true,
+ }
+ input: {
+ ((a, b) => a + b)(console.log(42));
+ }
+ expect: {
+ ((a, b) => {})(console.log(42));
+ }
+ expect_stdout: "42"
+ node_version: ">=4"
+}
+
reduce_iife_1: {
options = {
evaluate: true,