Closed kevinresol closed 4 years ago
Does anybody know how ASI is supposed to work? I think I'll never get it ...
seems like it inserts when there is newline + invalid token encountered. in this case the latter is not fulfilled
Semicolons are inserted to separate expressions in block body. I just forgot to do that when the block is generated as a value :)
Source: https://github.com/kevinresol/spectatory/blob/abf98bc6169d56ca56ad913b7635d75ca76195b1/src/spectatory/Location.hx#L11-L26
Generated js:
Note that
this1
is being called as a function in the js because of the missing;