Rick Waldron (2014-03-02T23:30:18.000Z)
On Sun, Mar 2, 2014 at 3:07 PM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:

>
> On Mar 2, 2014, at 11:51 AM, Rick Waldron wrote:
>
> Here is the consensus from the "revisit":
> https://github.com/rwaldron/tc39-notes/blob/master/es6/2012-09/sept-19.md#conclusionresolution-8
>
> Rick
>
> On Sun, Mar 2, 2014 at 2:37 AM, Ryan Scheel <ryan.havvy at gmail.com> wrote:
>
>> It creates a variable scoped to the source file.
>>
>> On Sat, Mar 1, 2014 at 4:38 PM, Mark Volkmann <r.mark.volkmann at gmail.com>wrote:
>>
>>> Does a top-level let in a file (not inside any function) create a global
>>> variable just like var or does it create a variable that is scoped to the
>>> source file?
>>>
>>>
> a bit of additional clarification:  It depends upon whether the file is a
> module or a script file.  If it is a module, then let-like declarations
> have file scope.  If it is a normal script, then let-like declarations are
> global scope (visible to multiple script files) but does not create a
> property on the global object.
>

I missed this when I searched my notes on github:
https://github.com/rwaldron/tc39-notes/blob/master/es6/2013-11/nov-21.md#46-the-global-scope-contour(credit
to Brian Terlson for alerting me)

Rick




>
> Allen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20140302/1648d5c3/attachment.html>
domenic at domenicdenicola.com (2014-03-06T20:47:01.422Z)
I missed this when I searched my notes on github:
https://github.com/rwaldron/tc39-notes/blob/master/es6/2013-11/nov-21.md#46-the-global-scope-contour (credit
to Brian Terlson for alerting me)