Fix expression link at ifStatement

This commit is contained in:
Victor 2015-12-07 17:50:16 +02:00
parent 80db5bc6c9
commit e4f98c610a

View File

@ -330,7 +330,7 @@ Parser.prototype.jump = function() {
}; };
Parser.prototype.ifStatement = function() { Parser.prototype.ifStatement = function() {
var condition = expression(); var condition = this.expression();
this.consume(TokenType.COLON); this.consume(TokenType.COLON);
if (!this.hasEndIf) return false; if (!this.hasEndIf) return false;