Skip to content

Commit

Permalink
Normative: Make SharedArrayBuffer's sole parameter required (#2393)
Browse files Browse the repository at this point in the history
SharedArrayBuffer.length is 1 on all web engines (as is
ArrayBuffer.length). Unsure why this was made optional.

eshost output for `print(SharedArrayBuffer.length)`:

```
1

1

1

1
```
  • Loading branch information
syg authored and ljharb committed May 31, 2021
1 parent 56b5e8b commit c2a9389
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 @@ -36412,8 +36412,8 @@ <h1>The SharedArrayBuffer Constructor</h1>
</emu-note>

<emu-clause id="sec-sharedarraybuffer-length">
<h1>SharedArrayBuffer ( [ _length_ ] )</h1>
<p>When the `SharedArrayBuffer` function is called with optional argument _length_, the following steps are taken:</p>
<h1>SharedArrayBuffer ( _length_ )</h1>
<p>When the `SharedArrayBuffer` function is called with argument _length_, the following steps are taken:</p>
<emu-alg>
1. If NewTarget is *undefined*, throw a *TypeError* exception.
1. Let _byteLength_ be ? ToIndex(_length_).
Expand Down

0 comments on commit c2a9389

Please sign in to comment.