From 5bc40faebb25ad357ce41c425a9bd23d8e5ba08a Mon Sep 17 00:00:00 2001 From: Eric Vergnaud Date: Thu, 29 Dec 2016 23:24:09 +0800 Subject: [PATCH] fix typo --- runtime/JavaScript/src/antlr4/tree/Tree.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/JavaScript/src/antlr4/tree/Tree.js b/runtime/JavaScript/src/antlr4/tree/Tree.js index 22ea34496..688c61e48 100644 --- a/runtime/JavaScript/src/antlr4/tree/Tree.js +++ b/runtime/JavaScript/src/antlr4/tree/Tree.js @@ -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);