That does not make sense to me. Shouldn’t the property be either accessible in both cases or in neither case?
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 rauschma.de
home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com
I’m a bit confused by the following interaction on Firefox:
That does not make sense to me. Shouldn’t the property be either accessible in both cases or in neither case?