Skip to content

Commit

Permalink
Normative: Make SharedArrayBuffer's sole parameter required
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 committed Apr 26, 2021
1 parent 26061c0 commit 9d7bbbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -35492,7 +35492,7 @@ <h1>The SharedArrayBuffer Constructor</h1>
</emu-note>

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

0 comments on commit 9d7bbbe

Please sign in to comment.