aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2019-10-17 09:57:50 +0800
committerGitHub <noreply@github.com>2019-10-17 09:57:50 +0800
commitb1279a46d9801bbc3eee8c4ea90422dd7582b928 (patch)
treedf40e34f2964535bd1e2f5de8719050e54515f65 /lib
parentb571619d3129727da2fddd2fadff1ea98625a9a9 (diff)
downloadtracifyjs-b1279a46d9801bbc3eee8c4ea90422dd7582b928.tar.gz
tracifyjs-b1279a46d9801bbc3eee8c4ea90422dd7582b928.zip
fix corner case in `sequences` (#3491)
fixes #3490
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compress.js b/lib/compress.js
index c903d9af..e39435c7 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -2030,14 +2030,14 @@ merge(Compressor.prototype, {
n--;
CHANGED = true;
var left = prev.body;
- return make_sequence(left, [ left, right ]).transform(compressor);
+ return make_sequence(left, [ left, right ]);
}
var n = 0, prev;
for (var i = 0; i < statements.length; i++) {
var stat = statements[i];
if (prev) {
if (stat instanceof AST_Exit) {
- stat.value = cons_seq(stat.value || make_node(AST_Undefined, stat).transform(compressor));
+ stat.value = cons_seq(stat.value || make_node(AST_Undefined, stat)).transform(compressor);
} else if (stat instanceof AST_For) {
if (!(stat.init instanceof AST_Definitions)) {
var abort = false;