Brendan Eich (2013-09-11T06:53:36.000Z)
Cc'ing Tom to make sure I tell no lies.
> Boris Zbarsky <mailto:bzbarsky at MIT.EDU>
> September 10, 2013 9:10 PM
> Hey all,
>
> I was looking at implementing a membrane using ES6 proxies and ran 
> into a snag.  Consider a situation where object A has prototype B.  A' 
> is a proxy implementing the membrane, whose target is A.
>
> But now if Object.getPrototypeOf(A') is invoked the return value will 
> be B (unless it just throws).  There's no way for A' to return a new 
> proxy B' whose target is B in this situation.
>
> Is the intent here that the membrane should not be using A as its 
> target but some third object A''?

This. The target is for nonconfigurable properties. A membrane wants to 
hide the real target. See

http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxies (look for 
membrane and shadow)

/be

>   Or am I just missing something?
>
> -Boris
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
domenic at domenicdenicola.com (2013-09-25T01:38:22.895Z)
Cc'ing Tom to make sure I tell no lies.

Boris Zbarsky <mailto:bzbarsky at MIT.EDU> September 10, 2013 9:10 PM

> Is the intent here that the membrane should not be using A as its 
> target but some third object A''?

This. The target is for nonconfigurable properties. A membrane wants to 
hide the real target. See http://wiki.ecmascript.org/doku.php?id=harmony:direct_proxies (look for 
membrane and shadow)