[loose parser] Don't omit unfinished object literal properties
This commit is contained in:
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user