On Mar 5, 2008, at 5:04 PM, Erik Arvidsson wrote:

> We (Google) find setting the [[DontEnum]] flag with
> propertyIsEnumerable(name, flag) to be quite ugly.  I can't find any
> references to why the setter was tagged along onto the getter in this
> way?  Is there a reason why we don't want
> setPropertyIsEnumerable(name, flag) instead of overloading the getter?

Adding any properties to Object.prototype at this point is difficult.  
You may break object-detection tests. Is it worth the risk?

/be

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

Reply via email to