Skip to content

Can JsValue memory leak? #4017

Answered by daxpedda
oblique asked this question in Q&A
Jul 25, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Generally speaking, all the cases you mentioned, should be handled by the GC.
However there are some subtle issues that can't really be resolved because of the limitations surrounding JS, see #3917.

All-in-all, unless something is intentionally not cleaning up memory, everything should be handled correctly by the GC eventually.
If not, you have likely found a bug. Let us know if you do!

(I'm not familiar with serde-wasm-bindgen)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@daxpedda
Comment options

@caiges
Comment options

@daxpedda
Comment options

@oblique
Comment options

Answer selected by oblique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants