RegularExpressionLiteral is not used in the syntactic grammar

David-Sarah Hopwood david.hopwood at
Sun Sep 28 07:56:56 PDT 2008

As noticed by Chris Lambrou in
the ES3 grammar defines RegularExpressionLiteral, but never
uses it in the syntactic grammar.

It is used in the lexical grammar in InputElementRegExp, but that
obviously has no effect if it is not syntactically allowed as a
literal. This appears to be a simple omission in section 7.8, which
has 5 subsections for the various kinds of literal, but only 4
alternatives in the grammar.

This does not appear to be fixed in the latest (22 September 2008)
ES3.1 draft.

David-Sarah Hopwood

More information about the Es-discuss mailing list