esmangle
esmangle copied to clipboard
missing live |= in visitor
https://github.com/estools/esmangle/blob/90bf70752292064aecd33160a5c9cb0308038079/lib/pass/dead-code-elimination.js#L447
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?