Require a semicolon after do/while

This commit is contained in:
Marijn Haverbeke
2012-10-17 23:09:15 +02:00
parent e3514627a4
commit daefc220da
3 changed files with 4 additions and 15 deletions

View File

@@ -1017,6 +1017,7 @@
labels.pop();
expect(_while);
node.test = parseParenExpression();
semicolon();
return finishNode(node, "DoWhileStatement");
// Disambiguating between a `for` and a `for`/`in` loop is