> Object.defineProperty(obj,key, Object.create(defaultDataProperty, {value:
> 123});
Er, shouldn't that be:
Object.defineProperty(obj,key,Object.create(null, {value: {value: 123}}));
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?
In addition, it'd be nice if there was an easier way to create an object with
no [[Prototype]]... some sort of addition to object literal notation?
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss