Is Global Environment Regard one of the Object Environment Record?

Yusuke Suzuki utatane.tea at gmail.com
Thu Jun 28 11:39:14 PDT 2012


On Fri, Jun 29, 2012 at 2:46 AM, Allen Wirfs-Brock <allen at wirfs-brock.com>wrote:

> The specification of the Global Env. Record is obviously incomplete in the
> current draft and there are some global scope design issues that remain to
> be resolved.  Hopefully, at the July TC39 meeting.
>

I'm looking forward to seeing rev9 draft.


> It it likely that the Global Emnv. Record will ultimately be some sort of
> hybrid between an Object Env. Record and and a Declarative Env. Record.
> Some declarations (let, const, etc.) will be treated as declarative and
> others (var, built-ins, etc.) will be object property bindings on the
> global object.  There are various issues to work out but for now a
> reasonable approximation of the Global Env Record would be a Declarative
> Env Record that shadows an Object Env. Record on the global object.
>


> ultimately, it probably will have an InitializeBinding.  But the content
> of 10.5.1 is also subject to significant change as we work out the final
> details of the global scope design and modules.
>

I understand that because of block scoped declarations Global Env is based
on interface of Declarative Env. This is very reasonable. Thanks for your
response!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120629/794b2d42/attachment.html>


More information about the es-discuss mailing list