On Nov 29, 2012, at 7:47 AM, Nathan Wall wrote:

> > Object.defineProperty(obj,key, Object.create(defaultDataProperty, {value: 
> > 123});
> 
> Er, shouldn't that be:
> 
> Object.defineProperty(obj,key,Object.create(null, {value: {value: 123}}));

oops, yes create requires an addition object layer
> 
> Seems pretty excessive. It's probably too late to make defineProperty only 
> look at own properties, but how about making it ignore properties inherited 
> from Object.prototype?
Fairly complex to determine.  Would it really be worth it?

Allen

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to