Sets up a proxy handler to log exactly which internal methods get invoked; nice for testing purposes.
-
-
-
new Proxy({}, {get(_, trapName){return (...args) => { log(), return Reflect[trapName](...args)}} is another option for your handler
- 2 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.