Skip to content

[Refractor] Replace structuredClone() with a jayvee specific clone method#674

Merged
jrentlez merged 3 commits intomainfrom
no-structured-clone
Aug 11, 2025
Merged

[Refractor] Replace structuredClone() with a jayvee specific clone method#674
jrentlez merged 3 commits intomainfrom
no-structured-clone

Conversation

@jrentlez
Copy link
Copy Markdown
Contributor

This PR introduces the method cloneInternalValue(), with the goal of replacing structuredClone() when cloning tables.
structuredClone()'s main disadvantage is that it has some quirks (e.g. When cloning RegExp or Error).

Additionally, the PR also enables the typeguards to handle unknown values.

@jrentlez jrentlez merged commit 368e22c into main Aug 11, 2025
4 checks passed
@jrentlez jrentlez deleted the no-structured-clone branch August 11, 2025 17:05
@github-actions github-actions bot locked and limited conversation to collaborators Aug 11, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants