5.11. Clone a value
To make a clone of value in targetRealm during transaction, run these steps:
Set transaction’s state to inactive.
The transaction is made inactive so that getters or other side effects triggered by the cloning operation are unable to make additional requests against the transaction.
Let serialized be ? StructuredSerializeForStorage(value).
Let clone be ? StructuredDeserialize(serialized, targetRealm).
Return clone.