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

# Axel Rauschmayer (14 years ago)

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?