aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-27 09:39:55 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-27 09:39:55 -0700
commit931ef137796f203be401cdddfd8cf0a2a8a6a7e6 (patch)
treeab87cd28bcb28ff92deaffe30078c95e9b885880 /tools
parent2f51caf9b635f4f0b356ff407f1d4807d69270c1 (diff)
support seq in eliminator
Diffstat (limited to 'tools')
-rw-r--r--tools/js-optimizer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/js-optimizer.js b/tools/js-optimizer.js
index eaeabeef..e3558e34 100644
--- a/tools/js-optimizer.js
+++ b/tools/js-optimizer.js
@@ -1645,7 +1645,7 @@ function eliminate(ast) {
traverseInOrder(node[1]);
} else if (type == 'label') {
traverseInOrder(node[2]);
- } else if (type == 'while') {
+ } else if (type == 'while' || type == 'seq') {
traverseInOrder(node[1]);
traverseInOrder(node[2]);
} else if (type == 'do') {