diff --git a/runtime-testsuite/test/org/antlr/v4/test/runtime/javascript/BaseNodeTest.java b/runtime-testsuite/test/org/antlr/v4/test/runtime/javascript/BaseNodeTest.java index 0bd278fe2..c97ecece6 100644 --- a/runtime-testsuite/test/org/antlr/v4/test/runtime/javascript/BaseNodeTest.java +++ b/runtime-testsuite/test/org/antlr/v4/test/runtime/javascript/BaseNodeTest.java @@ -627,7 +627,6 @@ public class BaseNodeTest implements RuntimeTestSupport { + "var = require('./').;\n" + "\n" + "function TreeShapeListener() {\n" - + " antlr4.tree.ParseTreeListener.call(this);\n" + " return this;\n" + "}\n" + "\n" diff --git a/tool/resources/org/antlr/v4/tool/templates/codegen/JavaScript/JavaScript.stg b/tool/resources/org/antlr/v4/tool/templates/codegen/JavaScript/JavaScript.stg index 2b310fb70..63626859c 100644 --- a/tool/resources/org/antlr/v4/tool/templates/codegen/JavaScript/JavaScript.stg +++ b/tool/resources/org/antlr/v4/tool/templates/codegen/JavaScript/JavaScript.stg @@ -66,7 +66,6 @@ var antlr4 = require('antlr4/index'); // This class defines a complete listener for a parse tree produced by . function Listener() { - antlr4.tree.ParseTreeListener.call(this); return this; }