Strict mode recap

Lars Hansen lhansen at adobe.com
Wed Apr 2 14:38:40 PDT 2008


> -----Original Message-----
> From: es4-discuss-bounces at mozilla.org 
> [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of Lars Hansen
> Sent: 31. mars 2008 20:09
> To: Waldemar Horwat; es4-discuss at mozilla.org
> Subject: RE: Strict mode recap
> 
> > -----Original Message-----
> > From: es4-discuss-bounces at mozilla.org 
> > [mailto:es4-discuss-bounces at mozilla.org] On Behalf Of 
> Waldemar Horwat
> > Sent: 31. mars 2008 18:03
> > To: es4-discuss at mozilla.org
> > Subject: Strict mode recap
> > 
> > - delete o.x when x is not in o but in the proto will throw
> 
> Actually delete o.x when x is not an own property on o, 
> regardless of whether x in o.

And since destructuring is just sugar for property references, 
this implies that destructuring that attempts to access fields
not present will fail too, which is another thing that came
up in a (possibly private) discussion around strict mode.

--lars



More information about the Es4-discuss mailing list