|
2528 | 2528 | ### Serialization ###{#encodedaudiochunk-serialization}
|
2529 | 2529 | : The {{EncodedAudioChunk}} [=serialization steps=] (with |value|, |serialized|,
|
2530 | 2530 | and |forStorage|) are:
|
2531 |
| -:: 1. If |forStorage| is `true`, throw a {{TypeError}}. |
| 2531 | +:: 1. If |forStorage| is `true`, throw a {{DataCloneError}}. |
2532 | 2532 | 2. For each {{EncodedAudioChunk}} internal slot in |value|, assign the value
|
2533 | 2533 | of each internal slot to a field in |serialized| with the same name as
|
2534 | 2534 | the internal slot.
|
|
2620 | 2620 | ### Serialization ###{#encodedvideochunk-serialization}
|
2621 | 2621 | : The {{EncodedVideoChunk}} [=serialization steps=] (with |value|, |serialized|,
|
2622 | 2622 | and |forStorage|) are:
|
2623 |
| -:: 1. If |forStorage| is `true`, throw a {{TypeError}}. |
| 2623 | +:: 1. If |forStorage| is `true`, throw a {{DataCloneError}}. |
2624 | 2624 | 2. For each {{EncodedVideoChunk}} internal slot in |value|, assign the value
|
2625 | 2625 | of each internal slot to a field in |serialized| with the same name as
|
2626 | 2626 | the internal slot.
|
|
2986 | 2986 | |forStorage|) are:
|
2987 | 2987 | :: 1. If |value|'s {{platform object/[[Detached]]}} is `true`, throw a
|
2988 | 2988 | {{DataCloneError}} {{DOMException}}.
|
2989 |
| - 2. If |forStorage| is `true`, throw a {{TypeError}}. |
| 2989 | + 2. If |forStorage| is `true`, throw a {{DataCloneError}}. |
2990 | 2990 | 3. Let |resource| be the [=media resource=] referenced by
|
2991 | 2991 | |value|'s {{AudioData/[[resource reference]]}}.
|
2992 | 2992 | 4. Let |newReference| be a new reference to |resource|.
|
|
4113 | 4113 | |forStorage|) are:
|
4114 | 4114 | :: 1. If |value|'s {{platform object/[[Detached]]}} is `true`, throw a
|
4115 | 4115 | {{DataCloneError}} {{DOMException}}.
|
4116 |
| - 2. If |forStorage| is `true`, throw a {{TypeError}}. |
| 4116 | + 2. If |forStorage| is `true`, throw a {{DataCloneError}}. |
4117 | 4117 | 3. Let |resource| be the [=media resource=] referenced by
|
4118 | 4118 | |value|'s {{VideoFrame/[[resource reference]]}}.
|
4119 | 4119 | 4. Let |newReference| be a new reference to |resource|.
|
|
0 commit comments