3 ms·
Was going to say that this is clearly a bug in the minifier but then I thought about the effort involved in properly supporting non-terminated lines (or even de
by bruceboughton 16y ago
Was going to say that this is clearly a bug in the minifier but then I thought about the effort involved in properly supporting non-terminated lines (or even detecting it). You're going to end up writing a JS parser.
This really shows the cost of this syntactic nicety to the language.
- wlievens 16y agoI would hope that minifiers use a JS parser!
- bruceboughton 16y agoI imagine much of the minification could be done using just a lexer rather than a full parser. I'm quite probably wrong though.