Record mode: Should we dup arguments?
searls opened this issue · comments
There is a risk that legacy code will modify the arguments when we call. If we wait to record things until after invoking the subject method, then we could:
- Immediately create the
observations
record and dump the args before calling the legacy code - Duplicate the args we persist from the ones we pass