Skip to content

Commit

Permalink
Failed assertion when structured cloning a TypedArray view of a SAB
Browse files Browse the repository at this point in the history
It seems like this was missed in whatwg#2518.
  • Loading branch information
Andreu Botella committed Sep 16, 2021
1 parent 6aa8e42 commit 01906e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -8289,7 +8289,8 @@ interface <dfn interface>DOMStringList</dfn> {
<span>StructuredSerializeInternal</span>(<var>buffer</var>, <var>forStorage</var>,
<var>memory</var>).</p></li>

<li><p>Assert: <var>bufferSerialized</var>.[[Type]] is "ArrayBuffer".</p></li>
<li><p>Assert: <var>bufferSerialized</var>.[[Type]] is "ArrayBuffer" or
"SharedArrayBuffer".</p></li>

<li><p>If <var>value</var> has a [[DataView]] internal slot, then set <var>serialized</var> to
{ [[Type]]: "ArrayBufferView", [[Constructor]]: "DataView", [[ArrayBufferSerialized]]:
Expand Down

0 comments on commit 01906e6

Please sign in to comment.