Reflection of global bindings
bzbarsky at MIT.EDU
Sat Dec 15 09:37:38 PST 2012
On 12/15/12 12:34 PM, David Bruant wrote:
>> No, nothing of the sort. The example shows it _present_ on the global
>> (the third alert in my example) but missing from the WindowProxy
>> (fourth alert).
> I'm comparing the second and fourth alert (that's not what the example
> was created to show, but that's what it shows too). In the second alert,
> there is the 'foo' property and it is non-configurable as per the spec,
> because you var-declared it. In the 4th alert, the property has
> magically disappeared.
Sure, but those aren't properties on the _global_. They're properties
on a different object.
I agree there's a problem in terms of what getOwnPropertyDescriptor
returns for the property at the time of alert #2. Just want to make
sure we have the problem statement straight. ;)
More information about the es-discuss