@@ -2901,8 +2901,9 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
2901
2901
2902
2902
<li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-arraycreate">ArrayCreate</dfn> abstract operation</li>
2903
2903
<li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-call">Call</dfn> abstract operation</li>
2904
- <li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-clonearraybuffer">CloneArrayBuffer</dfn> abstract operation</li>
2905
2904
<li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-construct">Construct</dfn> abstract operation</li>
2905
+ <li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-copydatablockbytes">CopyDataBlockBytes</dfn> abstract operation</li>
2906
+ <li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-createbytedatablock">CreateByteDataBlock</dfn> abstract operation</li>
2906
2907
<li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-createdataproperty">CreateDataProperty</dfn> abstract operation</li>
2907
2908
<li>The <dfn data-x-href="https://tc39.github.io/ecma262/#sec-detacharraybuffer">DetachArrayBuffer</dfn> abstract operation</li>
2908
2909
<li>The <dfn data-x="js-EnqueueJob" data-x-href="https://tc39.github.io/ecma262/#sec-enqueuejob">EnqueueJob</dfn> abstract operation</li>
@@ -7885,9 +7886,20 @@ interface <dfn>DOMStringList</dfn> {
7885
7886
<li><p>If <span>IsDetachedBuffer</span>(<var>value</var>) is true, then throw a
7886
7887
<span>"<code>DataCloneError</code>"</span> <code>DOMException</code>.</p></li>
7887
7888
7889
+ <li><p>Let <var>size</var> be <var>value</var>.[[ArrayBufferByteLength]].</p></li>
7890
+
7891
+ <li>
7892
+ <p>Let <var>dataCopy</var> be ? <span>CreateByteDataBlock</span>(<var>size</var>).</p>
7893
+
7894
+ <p class="note">This can throw a <code data-x="js-RangeError">RangeError</code> exception upon
7895
+ allocation failure.</p>
7896
+ </li>
7897
+
7898
+ <li><p>Perform ! <span>CopyDataBlockBytes</span>(<var>dataCopy</var>, 0,
7899
+ <var>value</var>.[[ArrayBufferData]], 0, <var>size</var>).</p></li>
7900
+
7888
7901
<li><p>Set <var>serialized</var> to { [[Type]]: "ArrayBuffer", [[ArrayBufferData]]:
7889
- <var>value</var>.[[ArrayBufferData]], [[ArrayBufferByteLength]]:
7890
- <var>value</var>.[[ArrayBufferByteLength]] }.</p></li>
7902
+ <var>dataCopy</var>, [[ArrayBufferByteLength]]: <var>size</var> }.</p></li>
7891
7903
</ol>
7892
7904
</li>
7893
7905
@@ -8663,7 +8675,7 @@ interface <dfn>DOMStringList</dfn> {
8663
8675
<li><p>Let <var>outputArrayBuffer</var> be the <span>%ArrayBuffer%</span> intrinsic object in
8664
8676
<var>targetRealm</var>.
8665
8677
8666
- <li><p>Let <var>output</var> be ? <span> CloneArrayBuffer</span> (<var>input</var>, 0,
8678
+ <li><p>Let <var>output</var> be ? CloneArrayBuffer(<var>input</var>, 0,
8667
8679
<var>outputArrayBuffer</var>).</p></li>
8668
8680
</ol>
8669
8681
</li>
0 commit comments