• 0 Posts
  • 5 Comments
Joined 1Y ago
cake
Cake day: Jun 18, 2023

help-circle
rss

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: https://web.archive.org/web/20120418215856/https://ecma262-5.com/ELS5_Section_7.htm#Section_7.9

IMO it’s bad practice to rely on ASI since the semicolons may not get inserted where you expected them to. The following snippet

const x = 0
const y = x
[1, 2, 3].forEach(console.log) 

is interpreted as

const x = 0;
const y = x[1, 2, 3].forEach(console.log);

which raises a TypeError.

There are more examples of ASI not doing the right thing on the web, so I don’t agree with “Javascript doesn’t need semicolon”.



Linux 5.17 introduced a null pointer deref in the md (multiple disks) module. That’s the first time I used bisect to find a faulty commit. The issue was fixed in a later release candidate.

It can be a pretty handy tool if you’re dealing with projects that have a high number of commits between releases.


AnimeTosho also has a lot of anime, they’re simply posting selected nyaa.si content to usenet. Probably worth checking before downloading via torrent, as the Usenet download is much faster.