Closed dandclark closed 4 years ago
Just use LiteralPropertyName
.
Just use
LiteralPropertyName
.
LiteralPropertyName
also includes NumericLiteral, and I don't think anyone's been advocating to allow those at this point (looking at #78).
I am advocating for it. I would expect any LiteralPropertyName to be allowed in that position.
Oh, I misunderstood. Let's discuss in #78.
As discussed during the July 2020 TC39 meeting, it seems that people are in favor of allowing quotes, merging this.
Condition keys are currently limited to being IdentifierNames. This change additionally allows them to be string literals (' or ") , so that the condition entries list can be written a bit more like an object literal.
Numeric literals are still not permitted.
It's not yet certain that we want to go this route, so this won't be merged until we reach some conclusion regarding the discussion in #78.
Closes #78.