[Pkg-javascript-commits] [node-acorn-jsx] 284/484: [loose parser] Don't omit unfinished object literal properties

Bastien Roucariès rouca at moszumanska.debian.org
Sat Aug 19 14:20:44 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 12cbfed34f3eae4c0e19ac547806a6be7ecefca2
Author: Marijn Haverbeke <marijnh at gmail.com>
Date:   Mon Sep 22 14:46:41 2014 +0200

    [loose parser] Don't omit unfinished object literal properties
---
 acorn_loose.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/acorn_loose.js b/acorn_loose.js
index b3506b4..e7967f1 100644
--- a/acorn_loose.js
+++ b/acorn_loose.js
@@ -712,9 +712,7 @@
         prop.key = parsePropertyName() || dummyIdent();
         prop.value = parseFunction(startNode(), false);
       } else {
-        next();
-        eat(tt.comma);
-        continue;
+        prop.value = dummyIdent();
       }
 
       node.properties.push(finishNode(prop, "Property"));

-- 
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