missing 'new', thanks Mike

This commit is contained in:
Eric Vergnaud 2015-09-18 22:21:17 +08:00
parent 488f7b92ae
commit 986d00a5a0
1 changed files with 1 additions and 1 deletions

View File

@ -214,7 +214,7 @@ ParserRuleContext.prototype.getSourceInterval = function() {
if( this.start === null || this.stop === null) { if( this.start === null || this.stop === null) {
return INVALID_INTERVAL; return INVALID_INTERVAL;
} else { } else {
return Interval(this.start.tokenIndex, this.stop.tokenIndex); return new Interval(this.start.tokenIndex, this.stop.tokenIndex);
} }
}; };