Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: enhance cloneObject to handle Blob instances correctly#13217

Open
zzzzzzzcccccc wants to merge 2 commits into
react-hook-form:masterfrom
zzzzzzzcccccc:check-clone-object-blob-support-check
Open

fix: enhance cloneObject to handle Blob instances correctly#13217
zzzzzzzcccccc wants to merge 2 commits into
react-hook-form:masterfrom
zzzzzzzcccccc:check-clone-object-blob-support-check

Conversation

@zzzzzzzcccccc
Copy link
Copy Markdown

@zzzzzzzcccccc zzzzzzzcccccc commented Dec 26, 2025

The PR fix cloneObject to safely handle environments where Blob is undefined by guarding the instanceof Blob check, preventing runtime errors in SSR/Node-like/webview runtimes. Added regression tests to cover the “Blob not defined” case and to ensure plain objects containing a Blob are still cloned when isWeb is false

#12864

@zzzzzzzcccccc zzzzzzzcccccc force-pushed the check-clone-object-blob-support-check branch 2 times, most recently from 15a8809 to 3b216ec Compare December 26, 2025 05:55
@zzzzzzzcccccc zzzzzzzcccccc force-pushed the check-clone-object-blob-support-check branch from 3b216ec to d0ac921 Compare December 26, 2025 05:57
Comment thread src/utils/cloneObject.ts
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.

2 participants