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. /be _______________________________________________ Es4-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es4-discuss
