You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
Take a reference to the `handler` of the proxy before calling
`findTrap`, as we currently do for `target`. This respects the spec,
[10.5.8 [[Get]]](https://tc39.es/ecma262/#sec-proxy-object-internal-methods-and-internal-slots-get-p-receiver). According to spec, here is the ordering of events
```
1. Perform ? ValidateNonRevokedProxy(O).
2. Let target be O.[[ProxyTarget]].
3. Let handler be O.[[ProxyHandler]].
....
7. Let trapResult be ? Call(trap, handler, « target, P, Receiver »).
```
So, the very first thing we must do is take a reference to `handler`
once we have established we are not a revoked proxy. Then, this handler
is used as a reference elsewhere in the code.
Reviewed By: neildhar
Differential Revision: D47347863
fbshipit-source-id: c067481f0e776e3adfda8ba99782188ca21b89fc
0 commit comments