[Pkg-javascript-commits] [node-acorn-jsx] 339/484: Loose: don't silently skip missed elements in expr list.
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit 4647f966eb291777af4da448af08def26730a24a
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Tue Oct 28 13:12:18 2014 +0200
Loose: don't silently skip missed elements in expr list.
---
acorn_loose.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/acorn_loose.js b/acorn_loose.js
index 197e184..7585b83 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);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list