Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graciously fall back from failed cloneDeep #469

Closed
wants to merge 1 commit into from
Closed

Graciously fall back from failed cloneDeep #469

wants to merge 1 commit into from

Conversation

monovertex
Copy link
Contributor

In some cases cloneDeep can fail, rendering the stub unusable. This PR adds error handling for that case, falling back to using the original args object by reference. See discussion in #417.

@searls, please let me know if there's other methods of error handling. I searched for try/catch blocks in the source and only found some that were not relevant for this particular use case.

@searls
Copy link
Member

searls commented Aug 27, 2021

I hand-merged this because there were several edge cases I'd mentioned in the other thread that needed to be handled in order to support this change without potentially violating the contract of the cloneDeep setting. You can review the change here d47201c

Released as 3.16.2

@searls searls closed this Aug 27, 2021
@monovertex
Copy link
Contributor Author

Released as 3.16.2

Thank you! Sorry for the late reply, was away on holidays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants