Skip to content

v1.4.1

Compare
Choose a tag to compare
@sirbrillig sirbrillig released this 12 Sep 17:08
· 156 commits to master since this release

If an argument passed to a Spy is an object, it will be passed by reference and stored as a reference in the SpyCall. Before it can be checked by the assertion, it could be mutated by changing another reference to the object.

This release deeply clones function arguments before saving them to prevent possible mutations.