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 ? Cheers, David -- David Teller ------------------------------------------ Security of Distributed Systems ----------------------- Project JStify: Static Analysis for JavaScript 2 ----- -- http://www.univ-orleans.fr/lifo/Members/David.Teller ----- Laboratoire d'Informatique Fondamentale d'Orleans _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
