When you clone a JsValue, is it swallow or deep clone? #3472
-
When you clone a JsValue, is it swallow or deep clone? To be more specific, when you clone web_sys::ReadableStreamDefaultReader, is it swallow or deep clone? |
Beta Was this translation helpful? Give feedback.
Answered by
Liamolucko
Jun 8, 2023
Replies: 1 comment
-
It's a shallow clone; it just creates a new reference to the same value. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
daxpedda
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's a shallow clone; it just creates a new reference to the same value.