aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-1261.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress/issue-1261.js')
-rw-r--r--test/compress/issue-1261.js78
1 files changed, 38 insertions, 40 deletions
diff --git a/test/compress/issue-1261.js b/test/compress/issue-1261.js
index 994a00b3..9f4f466f 100644
--- a/test/compress/issue-1261.js
+++ b/test/compress/issue-1261.js
@@ -8,7 +8,6 @@ pure_function_calls: {
unused : true,
if_return : true,
join_vars : true,
- cascade : true,
negate_iife : true,
}
input: {
@@ -49,13 +48,13 @@ pure_function_calls: {
a.b(), f.g();
}
expect_warnings: [
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:17,8]",
- "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:17,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:30,37]",
- "WARN: Dropping unused variable iife2 [test/compress/issue-1261.js:30,16]",
- "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:28,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:38,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:39,31]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:16,8]",
+ "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:16,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:29,37]",
+ "WARN: Dropping unused variable iife2 [test/compress/issue-1261.js:29,16]",
+ "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:27,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:37,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:38,31]",
]
}
@@ -69,7 +68,6 @@ pure_function_calls_toplevel: {
unused : true,
if_return : true,
join_vars : true,
- cascade : true,
negate_iife : true,
toplevel : true,
}
@@ -112,17 +110,17 @@ pure_function_calls_toplevel: {
a.b(), f.g();
}
expect_warnings: [
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:79,8]",
- "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:79,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:92,37]",
- "WARN: Dropping unused variable iife2 [test/compress/issue-1261.js:92,16]",
- "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:90,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:107,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:108,31]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:84,33]",
- "WARN: Dropping unused variable iife1 [test/compress/issue-1261.js:84,12]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:100,45]",
- "WARN: Dropping unused variable MyClass [test/compress/issue-1261.js:100,12]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:77,8]",
+ "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:77,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:90,37]",
+ "WARN: Dropping unused variable iife2 [test/compress/issue-1261.js:90,16]",
+ "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:88,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:105,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:106,31]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:82,33]",
+ "WARN: Dropping unused variable iife1 [test/compress/issue-1261.js:82,12]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:98,45]",
+ "WARN: Dropping unused variable MyClass [test/compress/issue-1261.js:98,12]",
]
}
@@ -157,29 +155,29 @@ should_warn: {
baz();
}
expect_warnings: [
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:137,61]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:137,23]",
- "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:137,23]",
- "WARN: Boolean || always true [test/compress/issue-1261.js:138,23]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:135,61]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:135,23]",
+ "WARN: Dropping side-effect-free statement [test/compress/issue-1261.js:135,23]",
+ "WARN: Boolean || always true [test/compress/issue-1261.js:136,23]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:136,23]",
+ "WARN: Condition always true [test/compress/issue-1261.js:136,23]",
+ "WARN: Condition left of || always true [test/compress/issue-1261.js:137,8]",
+ "WARN: Condition always true [test/compress/issue-1261.js:137,8]",
+ "WARN: Boolean && always false [test/compress/issue-1261.js:138,23]",
"WARN: Dropping __PURE__ call [test/compress/issue-1261.js:138,23]",
- "WARN: Condition always true [test/compress/issue-1261.js:138,23]",
- "WARN: Condition left of || always true [test/compress/issue-1261.js:139,8]",
- "WARN: Condition always true [test/compress/issue-1261.js:139,8]",
- "WARN: Boolean && always false [test/compress/issue-1261.js:140,23]",
+ "WARN: Condition always false [test/compress/issue-1261.js:138,23]",
+ "WARN: Condition left of && always false [test/compress/issue-1261.js:139,8]",
+ "WARN: Condition always false [test/compress/issue-1261.js:139,8]",
+ "WARN: + in boolean context always true [test/compress/issue-1261.js:140,23]",
"WARN: Dropping __PURE__ call [test/compress/issue-1261.js:140,23]",
- "WARN: Condition always false [test/compress/issue-1261.js:140,23]",
- "WARN: Condition left of && always false [test/compress/issue-1261.js:141,8]",
- "WARN: Condition always false [test/compress/issue-1261.js:141,8]",
- "WARN: + in boolean context always true [test/compress/issue-1261.js:142,23]",
+ "WARN: Condition always true [test/compress/issue-1261.js:140,23]",
+ "WARN: + in boolean context always true [test/compress/issue-1261.js:141,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:141,31]",
+ "WARN: Condition always true [test/compress/issue-1261.js:141,8]",
"WARN: Dropping __PURE__ call [test/compress/issue-1261.js:142,23]",
- "WARN: Condition always true [test/compress/issue-1261.js:142,23]",
- "WARN: + in boolean context always true [test/compress/issue-1261.js:143,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:143,31]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:143,24]",
"WARN: Condition always true [test/compress/issue-1261.js:143,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:144,23]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:145,24]",
- "WARN: Condition always true [test/compress/issue-1261.js:145,8]",
- "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:146,31]",
- "WARN: Condition always false [test/compress/issue-1261.js:146,8]",
+ "WARN: Dropping __PURE__ call [test/compress/issue-1261.js:144,31]",
+ "WARN: Condition always false [test/compress/issue-1261.js:144,8]",
]
}