Strict mode recap
lhansen at adobe.com
Wed Apr 2 17:53:20 PDT 2008
> -----Original Message-----
> From: zeppieri at gmail.com [mailto:zeppieri at gmail.com] On
> Behalf Of Jon Zeppieri
> Sent: 2. april 2008 17:51
> To: Lars Hansen
> Cc: Waldemar Horwat; es4-discuss at mozilla.org
> Subject: Re: Strict mode recap
> On 3/31/08, Lars Hansen <lhansen at adobe.com> wrote:
> > Having thought more about this, we may get away with less draconian
> > measures for lexically scoped eval -- it's enough to simply decree
> > that eval may not add bindings to the caller's binding object in
> > strict mode (a simple run-time check, effectively the same as
> > disabling global variable auto-creation).
> > The observation is that reference forms like expr::[expr] require
> > the same functionality as the constrained, lexically scoped eval
> > would require anyway, so the benefit of outlawing eval except for
> > matters of taste is doubtful both in terms of implementation cost
> > simplified semantics.
> Lars, does this mean that expr::[expr] can't introduce
> lexical bindings? Or: in strict mode, it can't, but in
> standard it can?
It can't introduce bindings; it's just a name.
More information about the Es4-discuss