Controlling DontEnum (was: ES4 draft: Object)

Kris Zyp kris at sitepen.com
Tue Mar 11 22:12:41 PDT 2008


>> Object.prototype.__setPropertyWithAttributes__(name, value, dontEnum:
>> boolean, readOnly: boolean, dontDelete: boolean);
>
> Only if you cannot change an existing properties attribute, or delete  an 
> existing property and create a new one with the same name. Those  cases 
> would have to fail. A false return is not a fail-stop  condition, so an 
> exception might be better.

Yes, I agree.

> And yeah, the  lack of named parameters hurts call-site readability.

Yeah, I took ugly and maybe it even uglier, didn't I :). Obviously one could 
do better...

Kris 




More information about the Es4-discuss mailing list