This commit is contained in:
Eric Vergnaud 2021-01-23 18:18:30 +08:00
parent 329f1301ea
commit e8dfc30f91
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ class DefaultErrorStrategy extends ErrorStrategy {
this.nextTokenState = ATNState.INVALID_STATE_NUMBER;
return;
} else if (nextTokens.contains(Token.EPSILON)) {
if(self.nextTokensContext === null) {
if(this.nextTokensContext === null) {
// It's possible the next token won't match information tracked
// by sync is restricted for performance.
this.nextTokensContext = recognizer._ctx;