Rule 317

David Teller David.Teller at
Tue Oct 23 09:57:02 PDT 2007

On Tue, 2007-10-23 at 14:58 +0200, liorean wrote:
> It's there to prevent the grammar from being ambiguous. "function",
> "let" and "{" have different meaning in statement context from
> expression context. If the ExpressionStatement construct allowed them,
> then they would be ambigous in statement context, they could have
> either the statement or the expression semantics. So, in order to
> prevent this ambiguity, they are not allowed in ExpressionStatement.

So I guess this could just be handled by making this rule have a lowest
priority ?


David Teller ------------------------------------------
Security of Distributed Systems -----------------------
Project JStify: Static Analysis for JavaScript 2  -----
----- Laboratoire d'Informatique Fondamentale d'Orleans

More information about the Es4-discuss mailing list