Exactly where is a RegularExpressionLiteral allowed?

Brendan Eich brendan at mozilla.com
Mon Mar 23 18:39:08 PDT 2009

On Mar 23, 2009, at 4:27 PM, David-Sarah Hopwood wrote:

> 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.

Agreed, presumably Allen agrees too. It's obvious now that you point  
it out ;-).

Thanks for the links to your exchange with Eric Suen, I should have  
remembered that.


More information about the Es-discuss mailing list