From bcebacbb9e7ddac7d9c0e4ca2c7e0faf0e0bca7c Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Fri, 13 Jul 2018 01:51:10 +0800 Subject: fix corner cases in `preserve_line` (#3212) --- test/compress/evaluate.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'test/compress/evaluate.js') 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]", ] } -- cgit v1.2.3