My bad, I sent the previous email to es-discuss-owner instead of to es-discuss. Forwarding Brendan’s answer to everyone.
Begin forwarded message: > From: Brendan Eich <[email protected]> > Subject: Re: Object.prototype.__proto__ > Date: September 28, 2012 16:25:06 GMT+02:00 > To: Axel Rauschmayer <[email protected]> > Cc: [email protected] > > Axel Rauschmayer wrote: >> It is my understanding of B.3.1 that Object.prototype.__proto__’s only use >> is as a flag to switch off __proto__ for all objects (I’m assuming in >> settings similar to Caja). Wouldn’t it be better to introduce a real boolean >> flag, along with a unique name object? > > No. > > First, __proto__ is what it is, a de-facto standard (albeit with > non-configurability in some implementations, a bug to fix), and adding some > new switch elsewhere won't change things. So what you propose is redundant > (given configurability). > > Second, what's wrong with |delete Object.prototype.__proto__| as the > explicit, symbol-free (symbol = unique name) way of turning off __proto__ for > a given global object and object graph generated within that scope? It's > simpler and more direct than setting some other property for a side-effect. > > The only issue remaining with __proto__ is whether it is a magic data > property, or an accessor with poisoned get and set pills on reflection. > > /be > -- Dr. Axel Rauschmayer [email protected] home: rauschma.de twitter: twitter.com/rauschma blog: 2ality.com
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

