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

@@ -17695,19 +17695,6 @@ test("do keep(); while (true);", {
line: 1,
column: 0
},
end: {
line: 1,
column: 23
}
}
},
{
type: "EmptyStatement",
loc: {
start: {
line: 1,
column: 23
},
end: {
line: 1,
column: 24
@@ -17897,7 +17884,7 @@ test("do { x++; y--; } while (x < 10)", {
}
});
test("{ do { } while (false) false }", {
test("{ do { } while (false);false }", {
type: "Program",
body: [
{
@@ -17940,7 +17927,7 @@ test("{ do { } while (false) false }", {
},
end: {
line: 1,
column: 22
column: 23
}
}
},