aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlex Lam S.L <alexlamsl@gmail.com>2021-03-02 09:39:34 +0000
committerGitHub <noreply@github.com>2021-03-02 17:39:34 +0800
commitb1e05fd48afd9aceaa00cc621a8f6ac22c097398 (patch)
tree08af40744ae15a820d3e897567167a54e696a0fe /lib
parent23b51287aa31630c5454fecb5991fd18f7528366 (diff)
downloadtracifyjs-b1e05fd48afd9aceaa00cc621a8f6ac22c097398.tar.gz
tracifyjs-b1e05fd48afd9aceaa00cc621a8f6ac22c097398.zip
fix corner case in `inline` & `sequences` (#4718)
fixes #4717
Diffstat (limited to 'lib')
-rw-r--r--lib/compress.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/compress.js b/lib/compress.js
index ad4c6809..e5e822af 100644
--- a/lib/compress.js
+++ b/lib/compress.js
@@ -3126,7 +3126,7 @@ merge(Compressor.prototype, {
if (prev) {
if (stat instanceof AST_Exit) {
if (stat.value || !in_async_generator(scope)) {
- stat.value = cons_seq(stat.value || make_node(AST_Undefined, stat)).transform(compressor);
+ stat.value = cons_seq(stat.value || make_node(AST_Undefined, stat)).optimize(compressor);
}
} else if (stat instanceof AST_For) {
if (!(stat.init instanceof AST_Definitions)) {