Add missing semicolon after do-while
Open
enhancement
- Dominant language
- JavaScript
- Stars
- 874
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
[The spec says](https://tc39.github.io/ecma262/#sec-additions-and-changes-that-introduce-incompatibilities-with-prior-editions):
> In ECMAScript 2015, Automatic Semicolon Insertion adds a semicolon at the end of a do-while statement if the semicolon is missing. This change aligns the specification with the actual behaviour of most existing implementations.
See [ASI spec](https://tc39.github.io/ecma262/#sec-rules-of-automatic-semicolon-insertion). This if for example not implemented by IE 9, so transpiling it could actually provide some benefit.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.