esmangle icon indicating copy to clipboard operation
esmangle copied to clipboard

missing live |= in visitor

Open aryx opened this issue 6 years ago • 1 comments

https://github.com/estools/esmangle/blob/90bf70752292064aecd33160a5c9cb0308038079/lib/pass/dead-code-elimination.js#L447

aryx avatar Oct 07 '19 13:10 aryx

I think you're right. It seems like

switch(f()){}

will be incorrectly dropped as dead code. @aryx Are you interested in sending a PR?

michaelficarra avatar Oct 09 '19 23:10 michaelficarra