This commit is contained in:
parrt 2016-11-22 12:47:49 -08:00
parent aeaba48a0b
commit ace7758f6e
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ SingletonPredictionContext.prototype.hashString = function() {
SingletonPredictionContext.prototype.toString = function() {
var up = this.parentCtx === null ? "" : this.parentCtx.toString();
if (up.length === 0) {
if (this.returnState === this.EMPTY_RETURN_STATE) {
if (this.returnState === PredictionContext.EMPTY_RETURN_STATE) {
return "$";
} else {
return "" + this.returnState;