> On Oct 22, 2015, at 11:23 AM, Mark S. Miller <[email protected]> wrote:
> 
> Tom, this doesn't sound right to me. Didn't we intend 
> Function.prototype.toString to be transparent thru function proxies?
> 
> cc'ing Allen and Brian
> 

There is nothing unique to `toString` going on there.  This is just the problem 
that the default proxy handlers are not transparent across method calls in that 
they pass the proxy object rather than the target object as the `this` value to 
function that they ultimately invoke.  If that method needs to access internal 
slots of its `this` value or has `this` identify dependencies they don’t work.  
It turns out that most Function.prototype methods have such dependencies. 

Allen
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to