From bbed9b13b12a5bdcaad414e4e2ccd469001eb0e7 Mon Sep 17 00:00:00 2001 From: "Alex Lam S.L" Date: Sat, 15 May 2021 15:34:14 +0100 Subject: fix corner case in `collapse_vars` (#4936) fixes #4935 --- lib/compress.js | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/compress.js b/lib/compress.js index 6010752d..02c034f6 100644 --- a/lib/compress.js +++ b/lib/compress.js @@ -1982,6 +1982,7 @@ merge(Compressor.prototype, { force_single = true; continue; } + if (replaced == assign_pos) assign_used = true; var def = lhs.definition(); abort = false; hit_index = 0; -- cgit v1.2.3