Controlling DontEnum (was: ES4 draft: Object)

Brendan Eich brendan at mozilla.org
Tue Mar 11 18:01:52 PDT 2008


On Mar 11, 2008, at 3:21 PM, Neil Mix wrote:

> On Mar 11, 2008, at 5:16 PM, Kris Zyp wrote:
>
>> Declarative is nice, but as mentioned before, it ignores one of the
>> primary
>> use cases: addition of non-enumerable properties to built-ins (by
>> libraries,
>> primarily).
>
> I've read mention of the weirdness of the timing window between the
> property definition and it's marking as non-enumerable.  That combined
> with the above observation makes me wonder if this should really be
> obj.__setNonEnumerableProperty__(name, value);

+1

/be




More information about the Es4-discuss mailing list