Skip to content

Commit

Permalink
Amend "Properties of AB/SAB" sections with new internal slots
Browse files Browse the repository at this point in the history
  • Loading branch information
syg committed Jul 31, 2023
1 parent 5495194 commit ba7e529
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -43148,7 +43148,7 @@ <h1>ArrayBuffer.prototype [ @@toStringTag ]</h1>

<emu-clause id="sec-properties-of-the-arraybuffer-instances">
<h1>Properties of ArrayBuffer Instances</h1>
<p>ArrayBuffer instances inherit properties from the ArrayBuffer prototype object. ArrayBuffer instances each have an [[ArrayBufferData]] internal slot, an [[ArrayBufferByteLength]] internal slot, and an [[ArrayBufferDetachKey]] internal slot.</p>
<p>ArrayBuffer instances inherit properties from the ArrayBuffer prototype object. ArrayBuffer instances each have an [[ArrayBufferData]] internal slot, an [[ArrayBufferByteLength]] internal slot, and an [[ArrayBufferDetachKey]] internal slot. ArrayBuffer instances which are resizable each have an [[ArrayBufferMaxByteLength]] internal slot.</p>
<p>ArrayBuffer instances whose [[ArrayBufferData]] is *null* are considered to be detached and all operators to access or modify data contained in the ArrayBuffer instance will fail.</p>
<p>ArrayBuffer instances whose [[ArrayBufferDetachKey]] is set to a value other than *undefined* need to have all DetachArrayBuffer calls passing that same "detach key" as an argument, otherwise a TypeError will result. This internal slot is only ever set by certain embedding environments, not by algorithms in this specification.</p>
</emu-clause>
Expand Down Expand Up @@ -43435,7 +43435,7 @@ <h1>SharedArrayBuffer.prototype [ @@toStringTag ]</h1>

<emu-clause id="sec-properties-of-the-sharedarraybuffer-instances">
<h1>Properties of SharedArrayBuffer Instances</h1>
<p>SharedArrayBuffer instances inherit properties from the SharedArrayBuffer prototype object. SharedArrayBuffer instances each have an [[ArrayBufferData]] internal slot and an [[ArrayBufferByteLength]] internal slot.</p>
<p>SharedArrayBuffer instances inherit properties from the SharedArrayBuffer prototype object. SharedArrayBuffer instances each have an [[ArrayBufferData]] internal slot. SharedArrayBuffer instances which are not growable each have an [[ArrayBufferByteLength]] internal slot. SharedArrayBuffer instances which are growable each have an [[ArrayBufferByteLengthData]] internal slot and an [[ArrayBufferMaxByteLength]] internal slot.</p>

<emu-note>
<p>SharedArrayBuffer instances, unlike ArrayBuffer instances, are never detached.</p>
Expand Down

0 comments on commit ba7e529

Please sign in to comment.