aboutsummaryrefslogtreecommitdiff
path: root/test/compress/loops.js
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2017-12-01 05:52:33 +0800
committerGitHub <noreply@github.com>2017-12-01 05:52:33 +0800
commitb762f2d6f4e81dcbd49ffb4db4b1933953942999 (patch)
treed4fde8ea2685912d3fe73ff0ba7e41706cc7e5ce /test/compress/loops.js
parent172079a47f2f7bf09d2a5b4e4cf05691a1206358 (diff)
downloadtracifyjs-b762f2d6f4e81dcbd49ffb4db4b1933953942999.tar.gz
tracifyjs-b762f2d6f4e81dcbd49ffb4db4b1933953942999.zip
improve compression of loop conditions (#2543)
Diffstat (limited to 'test/compress/loops.js')
-rw-r--r--test/compress/loops.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js
index bac40494..864276a3 100644
--- a/test/compress/loops.js
+++ b/test/compress/loops.js
@@ -148,9 +148,11 @@ parse_do_while_without_semicolon: {
evaluate: {
options = {
- loops: true,
dead_code: true,
evaluate: true,
+ loops: true,
+ passes: 2,
+ side_effects: true,
};
input: {
while (true) {