restrictions on let declarations

Erik Arvidsson erik.arvidsson at
Wed Jan 29 22:31:23 PST 2014

It falls out of the grammar.

IfStatement can only contain Statement which does not include Declaration
without going through a BlockStatement.

On Wed, Jan 29, 2014 at 9:57 PM, John Lenz <concavelenz at> wrote:

> I have some old notes that says that "let" can't be used in some context
> where a var could like:
>   if (a) let x = 2;
> In my perusal of the spec I don't see that this is the case now.  Can
> someone confirm that for me?
> _______________________________________________
> es-discuss mailing list
> es-discuss at

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list