5.11. Clone a value
To make a clone of value in targetRealm, the implementation must run these steps:
Let serialized be ? StructuredSerializeForStorage(value).
Let clone be ? StructuredDeserialize(serialized, targetRealm).
Return clone.
To make a clone of value in targetRealm, the implementation must run these steps:
Let serialized be ? StructuredSerializeForStorage(value).
Let clone be ? StructuredDeserialize(serialized, targetRealm).
Return clone.
本文档使用 BookStack 构建