Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: actaully reset 'injectedKeys' (#2456)
* refactor: Remove single-use variable * fix: actaully reset 'injectedKeys' Re-assigning the local variable `injectedKeys` would not change `sandbox.injectedKeys`, thus `restoreContext` doesn't fully restore the context. See: https://lgtm.com/projects/g/sinonjs/sinon/snapshot/9e09e7d79bac5808ca98fac4f7419a20be4fc43d/files/lib/sinon/sandbox.js?sort=name&dir=ASC&mode=heatmap#x9f770d565ef51b7d:1 * Update lib/sinon/sandbox.js Co-authored-by: Phred Lane <[email protected]> --------- Co-authored-by: Phred Lane <[email protected]>
- Loading branch information