minor cleanup

This commit is contained in:
alexlamsl 2020-02-15 22:11:20 +08:00
parent f0a29902ac
commit 67573d37e5

View File

@ -169,10 +169,7 @@ var AST_SimpleStatement = DEFNODE("SimpleStatement", "body", {
}, AST_Statement);
function walk_body(node, visitor) {
var body = node.body;
if (body instanceof AST_Statement) {
body._walk(visitor);
} else body.forEach(function(node) {
node.body.forEach(function(node) {
node._walk(visitor);
});
}