do-while takes a statement
see http://www.ecma-international.org/ecma-262/6.0/#sec-iteration-statements
This commit is contained in:
parent
e96f3544f6
commit
cbc37bfb2c
@ -170,7 +170,7 @@ defineType("DoWhileStatement", {
|
||||
validate: assertNodeType("Expression")
|
||||
},
|
||||
body: {
|
||||
validate: assertNodeType("BlockStatement")
|
||||
validate: assertNodeType("Statement")
|
||||
}
|
||||
},
|
||||
aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user