Skip to content

Commit f132dea

Browse files
authored
Web API: adopt [Serializable=SameAgentCluster]
As introduced by whatwg/html#4940.
1 parent 4eb91f1 commit f132dea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

document/web-api/index.bs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,24 +139,20 @@ Note: This algorithm accepts a {{Response}} object, or a
139139

140140
<h2 id="serialization">Serialization</h2>
141141

142-
Web user agents must augment the {{Module}} interface with the <code>[<a extended-attribute>Serializable</a>]</code> extended attribute.
142+
Web user agents must augment the {{Module}} interface with the <code>[<a extended-attribute>Serializable</a>]</code> extended attribute set to <code>SameAgentCluster</code>.
143143

144144
The [=serialization steps=], given |value|, |serialized|, and |forStorage|, are:
145145

146146
1. If |forStorage| is true, throw a "<a exception>DataCloneError</a>" {{DOMException}}
147147

148148
1. Set |serialized|.\[[Bytes]] to the [=sub-serialization=] of |value|.\[[Bytes]].
149149

150-
1. Set |serialized|.\[[AgentCluster]] to the [=current Realm=]'s corresponding [=agent cluster=].
151-
152150
The [=deserialization steps=], given |serialized| and |value|, are:
153151

154152
1. Let |bytes| be the [=sub-deserialization=] of |serialized|.\[[Bytes]].
155153

156154
1. Set |value|.\[[Bytes]] to |bytes|.
157155

158-
1. If |targetRealm|'s corresponding [=agent cluster=] is not |serialized|.\[[AgentCluster]], then throw a "<a exception>DataCloneError</a>" {{DOMException}}.
159-
160156
1. [=Compile a WebAssembly module=] from |bytes| and set |value|.\[[Module]] to the result.
161157

162158
Engines should attempt to share/reuse internal compiled code when performing

0 commit comments

Comments
 (0)