Structured clone the argument to postMessage.