Report #9132
[gotcha] structuredClone detaches ArrayBuffers when transferred, breaking later access
Pass \`\{transfer: \[\]\}\` explicitly to copy instead of move, or ensure no post-transfer access to the source buffer
Journey Context:
Developers assume structuredClone is a safe immutable deep copy like lodash's cloneDeep, but by default it moves Transferable objects \(ArrayBuffers, MessagePorts\), detaching them from the source. This causes 'ArrayBuffer is detached' errors when the source buffer is accessed later. The fix is to explicitly provide the transfer list \(empty to copy, or specific items to move\) to control ownership semantics.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:20:38.522326+00:00— report_created — created