aboutsummaryrefslogtreecommitdiff
path: root/test/compress/evaluate.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-07-13 01:51:10 +0800
committerGitHub <noreply@github.com>2018-07-13 01:51:10 +0800
commitbcebacbb9e7ddac7d9c0e4ca2c7e0faf0e0bca7c (patch)
treefcc19ae9f916dc819753245261f685ac8bb9d34b /test/compress/evaluate.js
parent018a5a750a16dce58ab50d943c47ea6cf01a0fbb (diff)
downloadtracifyjs-bcebacbb9e7ddac7d9c0e4ca2c7e0faf0e0bca7c.tar.gz
tracifyjs-bcebacbb9e7ddac7d9c0e4ca2c7e0faf0e0bca7c.zip
fix corner cases in `preserve_line` (#3212)
Diffstat (limited to 'test/compress/evaluate.js')
-rw-r--r--test/compress/evaluate.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/test/compress/evaluate.js b/test/compress/evaluate.js
index 999a1ca5..53fe8d96 100644
--- a/test/compress/evaluate.js
+++ b/test/compress/evaluate.js
@@ -1199,7 +1199,7 @@ issue_2231_1: {
}
expect_stdout: true
expect_warnings: [
- "WARN: Error evaluating Object.keys(void 0) [test/compress/evaluate.js:1195,20]",
+ "WARN: Error evaluating Object.keys(void 0) [test/compress/evaluate.js:1,20]",
]
}
@@ -1216,7 +1216,7 @@ issue_2231_2: {
}
expect_stdout: true
expect_warnings: [
- "WARN: Error evaluating Object.getOwnPropertyNames(null) [test/compress/evaluate.js:1212,20]",
+ "WARN: Error evaluating Object.getOwnPropertyNames(null) [test/compress/evaluate.js:1,20]",
]
}
@@ -1354,14 +1354,14 @@ issue_2535_3: {
}
expect_stdout: true
expect_warnings: [
- "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1340,20]",
- "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1341,20]",
- "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1342,20]",
- "WARN: Condition left of && always false [test/compress/evaluate.js:1342,20]",
- "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1343,20]",
- "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1344,20]",
- "WARN: Dropping side-effect-free || [test/compress/evaluate.js:1345,20]",
- "WARN: Condition left of || always true [test/compress/evaluate.js:1345,20]",
+ "WARN: Dropping side-effect-free && [test/compress/evaluate.js:1,20]",
+ "WARN: Dropping side-effect-free && [test/compress/evaluate.js:2,20]",
+ "WARN: Dropping side-effect-free && [test/compress/evaluate.js:3,20]",
+ "WARN: Condition left of && always false [test/compress/evaluate.js:3,20]",
+ "WARN: Dropping side-effect-free || [test/compress/evaluate.js:4,20]",
+ "WARN: Dropping side-effect-free || [test/compress/evaluate.js:5,20]",
+ "WARN: Dropping side-effect-free || [test/compress/evaluate.js:6,20]",
+ "WARN: Condition left of || always true [test/compress/evaluate.js:6,20]",
]
}