Commit Detail
Commit acf9018
JSRPC: Fix Proxy of a callable RpcTarget. When a Proxy wraps an RpcTarget that is callable, it should use RpcTarget semantics for properties (expose prototype properties), but it was instead using Function semantics (expose instance properties). This happened because we were detecting callable Proxies as Functions first. The serializer should treat them as Proxies first. (But this means we do need to explicitly detect Proxy-of-Function in the Proxy handling.) No compat flag because it would be very weird for someone to be relying on this behavior. A regular Proxy around a function still works as it always did. You have to go out of your way to create a Proxy that is both a function and an RpcTarget. The only reason you'd do that is if you wanted RpcTarget behavior -- and then you'd see that it didn't work (due to this bug).
Files changed
3 files changed~3 modified