3 ms·
It is a bug on JSMin. Minifying should never alter code behaviour.
by ricardobeat 15y ago
It is a bug on JSMin. Minifying should never alter code behaviour.
- deleted 15y ago[deleted]
- ricardobeat 15y agoSo you think it's ok for a minifier to break working code? Please explain.
- abraham 15y agoThe minification isn't breaking the code. The authors had an incorrect expectation of how JSMin would minify the code. By the very act of minifying code where new lines matter your are always potentially changing the behavior.
- mistercow 15y agoThe minification is breaking the code. If a minifier takes valid JS in and produces JS that behaves differently from the input, then that minifier is broken, full stop. It doesn't matter how anyone personally feels about ASI; what matters is that ASI is a part of JS, so if you're making a tool that processes JS, you need to respect its rules.
- deleted 15y ago[deleted]