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

"clone-deep"を組み込みのstructuredCloneに置き換える #2114

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

nix6839
Copy link
Contributor

@nix6839 nix6839 commented Jun 3, 2024

内容

以下の投稿を参考にすると、clone-deepとstructuredCloneの動作は__proto__を除けば、structuredCloneの方が優れているか同等であることが分かります。
コードを確認したところ、__proto__に関連するコードがなかったため、clone-deepをstructuredCloneに置き換えることができると判断しました。

Which is the best method for deep cloning in Javascript? Are they all bad? | by Tiago Bértolo | Medium

@nix6839 nix6839 requested a review from a team as a code owner June 3, 2024 13:14
@nix6839 nix6839 requested review from Hiroshiba and removed request for a team June 3, 2024 13:14
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

1箇所変更させていただきます!

src/components/Talk/TalkEditor.vue Outdated Show resolved Hide resolved
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
@nix6839 nix6839 requested a review from Hiroshiba June 3, 2024 22:11
@Hiroshiba Hiroshiba merged commit 95af27e into VOICEVOX:main Jun 3, 2024
8 checks passed
@nix6839 nix6839 deleted the replace-clone-deep-dep branch June 3, 2024 22:15
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