Open LucaFranceschini opened 6 years ago
Not going to do it any soon. Plus there are no guarantees that no other code has references to the wrapped function, which is created outside the control of this module.
Another implementation: https://github.com/salesforce/observable-membrane
Membranes may be useful (necessary?) to implement really transparent proxies/wrappers.
Sources: