Loose: don't silently skip missed elements in expr list.

This commit is contained in:
Ingvar Stepanyan 2014-10-28 13:12:18 +02:00 committed by Marijn Haverbeke
parent aa96edf769
commit 4647f966eb

View File

@ -968,8 +968,8 @@
next(); // Opening bracket
if (curLineStart > continuedLine) continuedLine = curLineStart;
while (!closes(close, indent + (curLineStart <= continuedLine ? 1 : 0), line)) {
if (allowEmpty && eat(tt.comma)) {
elts.push(null);
if (eat(tt.comma)) {
elts.push(allowEmpty ? null : dummyIdent());
continue;
}
var elt = parseExpression(true);