Skip to content

Commit

Permalink
fix deprecated call
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Vergnaud <[email protected]>
  • Loading branch information
ericvergnaud committed Mar 22, 2024
1 parent cf12c26 commit 3aaca69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/JavaScript/src/antlr4/Lexer.js
Original file line number Diff line number Diff line change
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 3aaca69

Please sign in to comment.