You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current draft specifies that the values should be serialized, but never deserializes them.
The output of StructuredSerialize (and its kin, like StructuredSerializeForStorage) isn't a cloned ECMAScript value, but a realm-independent serialization record. It can't be returned as the result of a getter, but needs to be passed to StructuredDeserialize at some point to return a new (cloned) ECMAScript value in the appropriate realm. (If that's always the realm that made it, you might even invoke it immediately.)
The text was updated successfully, but these errors were encountered:
@wanderview FYI I plan to call StructuredDeserialize immediately on the output of StructuredSerialize as I think that achieves the cloning we intended.
The current draft specifies that the values should be serialized, but never deserializes them.
The output of
StructuredSerialize
(and its kin, likeStructuredSerializeForStorage
) isn't a cloned ECMAScript value, but a realm-independent serialization record. It can't be returned as the result of a getter, but needs to be passed toStructuredDeserialize
at some point to return a new (cloned) ECMAScript value in the appropriate realm. (If that's always the realm that made it, you might even invoke it immediately.)The text was updated successfully, but these errors were encountered: