ES4 draft: Object

Brendan Eich brendan at
Wed Mar 5 17:19:57 PST 2008

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?


More information about the Es4-discuss mailing list