Wrong end token in conditionals.

This commit is contained in:
divdavem 2014-01-20 22:22:33 +01:00
parent 2d8fc61677
commit ea948ff010

View File

@ -1376,12 +1376,13 @@ function parse($TEXT, options) {
next();
var yes = expression(false);
expect(":");
var alternative = expression(false, no_in);
return new AST_Conditional({
start : start,
condition : expr,
consequent : yes,
alternative : expression(false, no_in),
end : peek()
alternative : alternative,
end : prev()
});
}
return expr;