restrictions on let declarations

John Lenz concavelenz at gmail.com
Wed Jan 29 21:57:20 PST 2014


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?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140129/70bd56bc/attachment.html>


More information about the es-discuss mailing list