Merge pull request #1565 from ericvergnaud/fix-javascript-typo

fix typo in javascript visitor
This commit is contained in:
Terence Parr 2017-01-03 17:05:50 -08:00 committed by GitHub
commit 040e40ec58
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);