-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
es/minifier: useless arguments aren't removed from new expr #11684
Copy link
Copy link
Open
Labels
Milestone
Description
Describe the feature
n=function(){throw 1}("test");->n=function(){throw 1}();"test" is removedn=new function(){throw 1}("test");->n=new function(){throw 1}("test");"test" is kept
(The throw 1 is there to prevent swc from removing the function entirely)
Babel plugin or link to the feature description
Additional context
No response
Reactions are currently unavailable