3 ms·
> if I'm not mistaken also allows cloning functions/Maps/Sets Map and Set yes, but not functions. Makes sense because there is no reasonable way to serialize f
by moritzwarhier 3y ago
> if I'm not mistaken also allows cloning functions/Maps/Sets
Map and Set yes, but not functions. Makes sense because there is no reasonable way to serialize functions in JS.
https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm#supported_types https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers...
edit: I have no idea what actually happens to cloned maps with function values or keys though...