Controlling DontEnum (was: ES4 draft: Object)

P T Withington ptw at pobox.com
Sun Apr 20 05:00:37 PDT 2008


[Coming late to the party]

On 2008-03-13, at 12:47 EDT, Lars Hansen wrote:
>  function __createProperty__(name:EnumerableId,
>                              dontEnum:boolean=false,
>                              dontDelete:boolean=false,
>                              readOnly:boolean=false): void

If I did my math right there are 8 possible flag combinations, but  
only 6 make sense.  Why not a single parameter that is a member of an  
enumeration?  Maybe the enumeration values could be named mnemonically  
to match the ES4 declarative syntax?






More information about the Es4-discuss mailing list