[loose parser] Don't omit unfinished object literal properties
This commit is contained in:
@@ -712,9 +712,7 @@
|
|||||||
prop.key = parsePropertyName() || dummyIdent();
|
prop.key = parsePropertyName() || dummyIdent();
|
||||||
prop.value = parseFunction(startNode(), false);
|
prop.value = parseFunction(startNode(), false);
|
||||||
} else {
|
} else {
|
||||||
next();
|
prop.value = dummyIdent();
|
||||||
eat(tt.comma);
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
node.properties.push(finishNode(prop, "Property"));
|
node.properties.push(finishNode(prop, "Property"));
|
||||||
|
|||||||
Reference in New Issue
Block a user