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