diff --git a/runtime/JavaScript/src/antlr4/Lexer.js b/runtime/JavaScript/src/antlr4/Lexer.js index 3e1edb6ea6..5cb8441e6a 100644 --- a/runtime/JavaScript/src/antlr4/Lexer.js +++ b/runtime/JavaScript/src/antlr4/Lexer.js @@ -174,7 +174,7 @@ export default class Lexer extends Recognizer { */ mode(m) { console.warn("Calling deprecated method in Lexer class: mode(...)"); - setMode(m); + this.setMode(m); } setMode(m) {