Skip to content

Commit

Permalink
fix missing 'this'
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Vergnaud <eric.vergnaud@wanadoo.fr>
  • Loading branch information
ericvergnaud committed Mar 22, 2024
1 parent 4a1963b commit 990fbc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/Lexer.js
Expand Up @@ -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) {
Expand Down

0 comments on commit 990fbc2

Please sign in to comment.