🔰automatic semicolon insertion
🚧 施工中
JS ⟩ grammar ⟩ token ⟩ semicolon ⟩ automatic insertion
There are three cases when semicolon (;) are automatically inserted:
🚧
ASI would only be triggered if a line break separates tokens that would otherwise produce invalid syntax.
If the next token can be parsed as part of a valid structure, semicolon (;) would not be inserted.
Last updated