André Bargull (2014-02-14T13:49:18.000Z)
> On 30/01/2014, at 17:13, Brendan Eich wrote:
> /
> />/  
> />/  Interesting!
> />/  
> />/  You don't want the alert to show undefined, so the extent of the inner binding in your model is the unbraced consequent of the  "if".
> />/  
> />/  That is not "block scope" in any plain sense.
> /
>
> How about this?
>
> let x= 0;
> if (1) eval("let x= 42; alert(x);"); //Is this in its own block?
> alert(x);

`eval()` hasn't yet been updated to work with the new lexical 
declaration forms, but I hope the example from above will be evaluated 
in a new block. See https://bugs.ecmascript.org/show_bug.cgi?id=1788 for 
a related bug report.

- André
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140214/b0e62a16/attachment.html>
domenic at domenicdenicola.com (2014-02-18T04:41:05.309Z)
`eval()` hasn't yet been updated to work with the new lexical 
declaration forms, but I hope the example from above will be evaluated 
in a new block. See https://bugs.ecmascript.org/show_bug.cgi?id=1788 for 
a related bug report.