Using structured cloning for deep copies is clever, but may or may not give you the behavior you want for SharedArrayBuffers. The copied value would be a new SAB with the same underlying data buffer, so that changes to one value will be visible to the other. That's good for most uses of structured cloning, but it's not what I would expect from a deep copy.https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
Null-Set|7 years ago
bcoates|7 years ago
yzmtf2008|7 years ago