From 0dbb12ad1ac8e9b453121ba2796ed91df5fae001 Mon Sep 17 00:00:00 2001 From: David Tymon Date: Tue, 15 Mar 2016 11:00:36 +1100 Subject: [PATCH] JS: Fix copy-and-paste error in OR SemanticContext toString() method - the OR toString() method was incorrectly added to the AND prototype --- runtime/JavaScript/src/antlr4/atn/SemanticContext.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/JavaScript/src/antlr4/atn/SemanticContext.js b/runtime/JavaScript/src/antlr4/atn/SemanticContext.js index 2fc4b1224..4052086f9 100644 --- a/runtime/JavaScript/src/antlr4/atn/SemanticContext.js +++ b/runtime/JavaScript/src/antlr4/atn/SemanticContext.js @@ -408,7 +408,7 @@ OR.prototype.evalPrecedence = function(parser, outerContext) { return result; }; -AND.prototype.toString = function() { +OR.prototype.toString = function() { var s = ""; this.opnds.map(function(o) { s += "|| " + o.toString();