|
2516 | 2516 | ### Serialization ###{#encodedaudiochunk-serialization}
|
2517 | 2517 | : The {{EncodedAudioChunk}} [=serialization steps=] (with |value|, |serialized|,
|
2518 | 2518 | and |forStorage|) are:
|
2519 |
| -:: 1. If |forStorage| is `true`, throw a {{TypeError}}. |
| 2519 | +:: 1. If |forStorage| is `true`, throw a {{DataCloneError}}. |
2520 | 2520 | 2. For each {{EncodedAudioChunk}} internal slot in |value|, assign the value
|
2521 | 2521 | of each internal slot to a field in |serialized| with the same name as
|
2522 | 2522 | the internal slot.
|
|
2608 | 2608 | ### Serialization ###{#encodedvideochunk-serialization}
|
2609 | 2609 | : The {{EncodedVideoChunk}} [=serialization steps=] (with |value|, |serialized|,
|
2610 | 2610 | and |forStorage|) are:
|
2611 |
| -:: 1. If |forStorage| is `true`, throw a {{TypeError}}. |
| 2611 | +:: 1. If |forStorage| is `true`, throw a {{DataCloneError}}. |
2612 | 2612 | 2. For each {{EncodedVideoChunk}} internal slot in |value|, assign the value
|
2613 | 2613 | of each internal slot to a field in |serialized| with the same name as
|
2614 | 2614 | the internal slot.
|
|
2974 | 2974 | |forStorage|) are:
|
2975 | 2975 | :: 1. If |value|'s {{platform object/[[Detached]]}} is `true`, throw a
|
2976 | 2976 | {{DataCloneError}} {{DOMException}}.
|
2977 |
| - 2. If |forStorage| is `true`, throw a {{TypeError}}. |
| 2977 | + 2. If |forStorage| is `true`, throw a {{DataCloneError}}. |
2978 | 2978 | 3. Let |resource| be the [=media resource=] referenced by
|
2979 | 2979 | |value|'s {{AudioData/[[resource reference]]}}.
|
2980 | 2980 | 4. Let |newReference| be a new reference to |resource|.
|
|
4064 | 4064 | |forStorage|) are:
|
4065 | 4065 | :: 1. If |value|'s {{platform object/[[Detached]]}} is `true`, throw a
|
4066 | 4066 | {{DataCloneError}} {{DOMException}}.
|
4067 |
| - 2. If |forStorage| is `true`, throw a {{TypeError}}. |
| 4067 | + 2. If |forStorage| is `true`, throw a {{DataCloneError}}. |
4068 | 4068 | 3. Let |resource| be the [=media resource=] referenced by
|
4069 | 4069 | |value|'s {{VideoFrame/[[resource reference]]}}.
|
4070 | 4070 | 4. Let |newReference| be a new reference to |resource|.
|
|
0 commit comments