ES4 draft: Object

Brendan Eich brendan at
Fri Mar 7 19:43:55 PST 2008

On Mar 7, 2008, at 7:27 PM, zwetan wrote:

> here some thought
> why not have a global utility function, maybe in the magic namespace
> SetPropertyFlag( reference:Object, name:*, setflag:int, unsetflag:int
> = 0 ):Boolean

No, sorry -- DontDelete upholds important integrity properties (like,  
you may not replace a setter for window.location). This over- 
generalizes in a dangerous and unwanted way.

The goal is to find the minimum amount of mutating meta-programming  
sharpness for this "make certain properties non-enumerable" tool. If  
it can be done with a one-time namespace qualification step, that wins.


More information about the Es4-discuss mailing list