Uninitialized immutable bindings

Mark S. Miller erights at google.com
Mon Nov 8 09:16:38 PST 2010

On Mon, Nov 8, 2010 at 7:44 AM, Mike Samuel <mikesamuel at gmail.com> wrote:

> 2010/11/8 Jason Orendorff <jason.orendorff at gmail.com>:
> > In, step 3 checks to see if the binding is an uninitialized
> > immutable binding. But I don't think this can happen. I only see two
> > places where immutable bindings are created: 10.5, to bind arguments
> > when entering a strict function; and clause 13, when evaluating a
> > FunctionExpression with a name. In both cases the immutable bindings
> > are initialized right away.  So it would seem step 3 can be removed.
> Was the same mechanism supposed to be used for const locals?

Yes. But more changes are needed to support blocked scoped const in general.
See <http://wiki.ecmascript.org/doku.php?id=harmony:block_scoped_bindings>
for such draft revisions to ES5.

> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20101108/aa451142/attachment.html>

More information about the es-discuss mailing list