Exactly where is a RegularExpressionLiteral allowed?

David-Sarah Hopwood david.hopwood at industrial-designers.co.uk
Mon Mar 23 16:27:23 PDT 2009

Brendan Eich wrote:
> On Mar 23, 2009, at 12:38 PM, Allen Wirfs-Brock wrote:
>> I don't think so, although perhaps the fix is as easy as adding
>> RegularExpressionLiteral as an alternative RHS for PrimaryExpression.
> Oh sure -- that is the missing link. Thanks!

It should be Literal, not PrimaryExpression. There is no technical
difference (since Literal is only used as one of the alternatives
for PrimaryExpression), but it's just common sense that a
RegularExpressionLiteral is a literal.

David-Sarah Hopwood ⚥

More information about the Es-discuss mailing list