aboutsummaryrefslogtreecommitdiff
path: root/test/compress/functions.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2018-01-02 18:42:15 +0800
committerGitHub <noreply@github.com>2018-01-02 18:42:15 +0800
commit6dead95eb3e2566f157b9d776803ea8b7168356d (patch)
treeca9d068856eddb8aad70a81bde7736443265f316 /test/compress/functions.js
parentcc931b3ad85ff980e397d598f49fb649d08bc68c (diff)
downloadtracifyjs-6dead95eb3e2566f157b9d776803ea8b7168356d.tar.gz
tracifyjs-6dead95eb3e2566f157b9d776803ea8b7168356d.zip
enhance `collapse_vars` (#2704)
Diffstat (limited to 'test/compress/functions.js')
-rw-r--r--test/compress/functions.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/compress/functions.js b/test/compress/functions.js
index 7acb7fde..dd98ba60 100644
--- a/test/compress/functions.js
+++ b/test/compress/functions.js
@@ -1285,7 +1285,7 @@ issue_2630_1: {
expect: {
var c = 0;
(function() {
- while (c++, void (c = 1 + c));
+ while (void (c = 1 + ++c));
})(),
console.log(c);
}
@@ -1316,7 +1316,7 @@ issue_2630_2: {
expect: {
var c = 0;
!function() {
- while (c += 1, void (c = 1 + c));
+ while (void (c = 1 + (c += 1)));
}(), console.log(c);
}
expect_stdout: "2"