add empty statement case to toBlock
This commit is contained in:
@@ -320,6 +320,10 @@ t.toBlock = function (node, parent) {
|
||||
return node;
|
||||
}
|
||||
|
||||
if (t.isEmptyStatement(node)) {
|
||||
node = [];
|
||||
}
|
||||
|
||||
if (!Array.isArray(node)) {
|
||||
if (!t.isStatement(node)) {
|
||||
if (t.isFunction(parent)) {
|
||||
|
||||
Reference in New Issue
Block a user