Proxying built-ins (Was: [[Invoke]] and implicit method calls)

Brendan Eich brendan at mozilla.com
Wed Sep 25 21:22:30 PDT 2013


Boris Zbarsky wrote:
> The web _does_ in general rely on being able to apply methods from 
> some built-in (including DOM) prototype in one realm to objects from 
> another realm.

This goes back to the dawn of JS. You can set location on a reachable 
frame or window, even if not same-origin.

There's no revocation in the Revocable Membrane sense going on. Rather, 
the membraning has to distinguish gets and other operations from sets, 
and throw or unwrap |this| accordingly.

/be


More information about the es-discuss mailing list