diff --git a/runtime/JavaScript/src/antlr4/BufferedTokenStream.js b/runtime/JavaScript/src/antlr4/BufferedTokenStream.js index a0d8c2be8a..565ce926d6 100644 --- a/runtime/JavaScript/src/antlr4/BufferedTokenStream.js +++ b/runtime/JavaScript/src/antlr4/BufferedTokenStream.js @@ -253,7 +253,7 @@ export default class BufferedTokenStream extends TokenStream { return -1; } let token = this.tokens[i]; - while (token.channel !== this.channel) { + while (token.channel !== channel) { if (token.type === Token.EOF) { return -1; }