Automatic Semicolon Insertion (ASI) has (sadly) been a part of JavaScript longer than 2016. I’m not sure exactly when it was introduced, but this document from 2009 already contains it: web.archive.org/web/…/ELS5_Section_7.htm#Section_…
IMO it’s bad practice to rely on ASI since the semicolons may not get inserted where you expected them to. The following snippet