Direct proxies strawman

William Edney bedney at technicalpursuit.com
Mon Oct 17 15:45:19 PDT 2011


David -

So I assume this would allow something like:

arrayProtoProxy = Proxy.for(Array.prototype, {...blah...});	//	Or even Object.prototype...
Proxy.startTrapping(arrayProtoProxy);

Then I could do:

myArr = [];
myArr.methodArraysDontUnderstand();

And that would be trapped by the stuff in {...blah...} ???

If so, then I'm very happy :-).

Cheers,

- Bill

On Oct 17, 2011, at 4:54 PM, David Bruant wrote:

> Le 17/10/2011 23:52, William Edney a écrit :
>> (...)
>> 
>> 'Proxy.startTrapping()' sounds very interesting... a quick search
>> didn't turn up anything. Do you have any pointers to discussions,
>> strawmen, etc.?
> Sorry, I forgot the link. It's on the direct proxy proposal:
> http://wiki.ecmascript.org/doku.php?id=strawman:direct_proxies#proxy.starttrapping_a.k.a._proxy.attach
> 
> David
> 



More information about the es-discuss mailing list