diff --git a/acorn_loose.js b/acorn_loose.js index 197e184369..7585b83b28 100644 --- a/acorn_loose.js +++ b/acorn_loose.js @@ -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);