do-while takes a statement

see http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements
This commit is contained in:
Amjad Masad 2015-12-09 18:37:02 -08:00
parent e96f3544f6
commit cbc37bfb2c

View File

@ -170,7 +170,7 @@ defineType("DoWhileStatement", {
validate: assertNodeType("Expression")
},
body: {
validate: assertNodeType("BlockStatement")
validate: assertNodeType("Statement")
}
},
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]