develwoutacause’s avatardevelwoutacause’s Twitter Archive—№ 101

  1. …in reply to @Jakeherringbone
    @Jakeherringbone ASI gets some situations wrong. An example I saw once: const a = b [ 1, 2, 3 ].map(console.log) This actually throws because ASI doesn't insert on the first line (thinking b is an array). It incorrectly merges the two lines together. Explicit semicolons FTW.