restrictions on let declarations

Rick Waldron waldron.rick at
Thu Jan 30 11:39:46 PST 2014

On Thu, Jan 30, 2014 at 2:27 PM, John Lenz <concavelenz at> wrote:

> I don't argue that it isn't a useless "let".  I do point out that in
> "sloppy" mode, that other declaration are allow in practices by browsers.
>  Chrome allows function, const, and var in the body of an if without block.

Did you mean to include const? Only IE11 has implemented const and let with
the proper semantics (with the exception of the for loop let binding
mistake, which will be corrected).

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

More information about the es-discuss mailing list