Membranes, unmediated access to objects through Object.getPrototypeOf

Brendan Eich brendan at mozilla.org
Thu Oct 11 00:32:16 PDT 2012


Tom Van Cutsem wrote:
> - Proxy.revocable returns a tuple {proxy, revoke}. While more 
> cumbersome to work with (especially in pre-ES6 code without 
> destructuring), this API gets the authority to revoke a proxy exactly 
> right: at proxy birth, only the creator of the proxy holds the right 
> to revoke it. This is infinitely better than a global 
> Proxy.revoke(proxy) method that would allow arbitrary objects to 
> revoke any proxy.

Ok, thanks for this recap. It makes sense, the ocap treatments are 
working ;-).

/be


More information about the es-discuss mailing list