isPropertyEnumerable is going to stay broken?

Garrett Smith dhtmlkitchen at
Mon Sep 24 20:16:30 PDT 2007

On 9/10/07, Brendan Eich <brendan at> wrote:
> On Sep 10, 2007, at 2:21 PM, Garrett Smith wrote:

> > The fact that the method
> > was called propertyIsEnumerable instead of isPropertyEnumerable is not
> > great, but the way propertyIsEnumerable is designed is confusing to
> > developers.
> I've never heard that complaint directly, or in a
> report. Can you cite complaints anywhere on the
> web? I believe you, but it would be good to have evidence.
Web search:

Apparently flash actually has a custom "isPropertyEnumerable" method.
It's on Adobe's website. I don't do Flash, so I can't say much about
it. It looks like a straight rename method, though.

This guy wants a rename, too:

isPropertyEnumerable and/or propertyIsEnumerable could return true if
an object can be enumerated in a for-in loop, and  check the prototype

Given the above change, the old (current) behavior could be achieved with:
r.propertyIsEnumerable( p ) && r.hasOwnProperty( p );

The change would allow for 4 different possibilities of r[ p ]


> /be

Programming is a collaborative art.

More information about the Es4-discuss mailing list