Skip to content

Commit

Permalink
No duplicates in StructuredSerializeWithTransfer's transferList
Browse files Browse the repository at this point in the history
Tests: ...

Fixes #3507.
  • Loading branch information
annevk committed Feb 26, 2018
1 parent b3e9942 commit 04f665e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source
Expand Up @@ -8813,12 +8813,15 @@ o.myself = o;</pre>
<var>transferable</var>.<span>[[Detached]]</span> is true, then throw a
<span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li><p>If <var>memory</var>[<var>transferable</var>] <span data-x="map exists">exists</span>,
then throw a <span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>

<li>
<p><span data-x="map set">Set</span> <var>memory</var>[<var>transferable</var>] to {
[[Type]]: an uninitialized value }.</p>

<p class="note"><var>transferable</var> is not transferred yet as that operation has side
effects and <span>StructuredSerializeInternal</span> can throw.</p>
<p class="note"><var>transferable</var> is not transferred yet as transferring has side
effects and <span>StructuredSerializeInternal</span> needs to be able to throw first.</p>
</li>
</ol>
</li>
Expand Down

0 comments on commit 04f665e

Please sign in to comment.