Hacker News new | ask | show | jobs
by bruceboughton 5806 days 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.

1 comments

I would hope that minifiers use a JS parser!
I imagine much of the minification could be done using just a lexer rather than a full parser. I'm quite probably wrong though.