You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
): either a normal completion containing ~unused~ or a throw completion
501
+
</h1>
502
+
<dl class="header">
503
+
<dt>skip global checks</dt>
504
+
<dd>true</dd>
505
+
</dl>
506
+
<emu-alg>
507
+
1. Assert: IsSharedArrayBuffer(_arrayBuffer_) is *false*.
508
+
1. If _key_ is not present, set _key_ to *undefined*.
509
+
1. If _arrayBuffer_.[[ArrayBufferDetachKey]] is not _key_, throw a *TypeError* exception.
510
+
1. <ins>If IsImmutableBuffer(_arrayBuffer_) is *true*, throw a *TypeError* exception.</ins>
511
+
1. Set _arrayBuffer_.[[ArrayBufferData]] to *null*.
512
+
1. Set _arrayBuffer_.[[ArrayBufferByteLength]] to 0.
513
+
1. Return ~unused~.
514
+
</emu-alg>
515
+
<emu-note>
516
+
<p>Detaching an ArrayBuffer instance disassociates the Data Block used as its backing store from the instance and sets the byte length of the buffer to 0.</p>
0 commit comments