2013/1/23 Tom Van Cutsem <[email protected]>
> Looking back at the code for an identity-preserving membrane <
> http://wiki.ecmascript.org/doku.php?id=harmony:proxies#an_identity-preserving_membrane>
> I think this membrane actually properly unwraps the |this| value before
> forwarding.
>
The relevant line of code here is (starting at line 30):
const callTrap(...dryArgs) {
return asDry(wet.apply(asWet(this), dryArgs.map(asWet)));
}
Note the "asWet(this)" conversion.
(there's similar code a couple of lines below that for the reverse
direction)
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss