This commit is contained in:
Eric Vergnaud 2016-12-29 23:24:09 +08:00
parent aa909ddcb1
commit 5bc40faebb
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ function ParseTreeVisitor() {
ParseTreeVisitor.prototype.visit = function(ctx) {
if (Array.isArray(ctx)) {
return ctx.map(function(child) {
return ctx.accept(this);
return child.accept(this);
}, this);
} else {
return ctx.accept(this);