restrictions on let declarations

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


On Thu, Jan 30, 2014 at 2:27 PM, John Lenz <concavelenz at gmail.com> 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).

Rick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140130/d025ae23/attachment-0001.html>


More information about the es-discuss mailing list