Confused by Firefox: own property with a descriptor not listed by getOwnPropertyNames()

Axel Rauschmayer axel at
Mon Dec 26 06:15:55 PST 2011

I’m a bit confused by the following interaction on Firefox:

    > Object.getOwnPropertyNames(new Error())
    > Object.getOwnPropertyDescriptor(new Error(), "stack")

That does not make sense to me. Shouldn’t the property be either accessible in both cases or in neither case?

Dr. Axel Rauschmayer
axel at


More information about the es-discuss mailing list