diff --git a/acorn_loose.js b/acorn_loose.js index b3506b46b5..e7967f1d30 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"));