Cc'ing Tom to make sure I tell no lies.
Boris Zbarsky <mailto:[email protected]>
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
[email protected]
https://mail.mozilla.org/listinfo/es-discuss
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss