Skip to content

Commit f8ca366

Browse files
authoredAug 17, 2023
fix(es/minifier): Abort seq inliner if var is not fn_local or reassigned (#7804)
**Description:** It turns out that the original implementation of `infect`is incomplete because it cannot cover function param, and the new implementation introduced in #7772 is redundant because what [terser](https://github.com/terser/terser/blob/master/lib/compress/tighten-body.js#L909C18-L909C28) do is basically checking `fn_local` **Related issue:** - Closes #7784
1 parent a6a5ec3 commit f8ca366

File tree

60 files changed

+463
-570
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+463
-570
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
//// [assignFromBooleanInterface2.ts]
2-
var a, b, x = !0;
3-
a = !0, b = a = b, b = x, x = a;
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
11
//// [assignFromNumberInterface2.ts]
2-
var a, b, x = 1;
3-
a = 1, b = a = b, b = x, x = a;

0 commit comments

Comments
 (0)