From c2a9389aa87ca91e440dbea14dbd2192270b0f64 Mon Sep 17 00:00:00 2001 From: Shu-yu Guo Date: Mon, 31 May 2021 14:19:56 -0700 Subject: [PATCH] Normative: Make SharedArrayBuffer's sole parameter required (#2393) 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 ``` --- spec.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec.html b/spec.html index 9f9d9ccc20..54d5bdcb92 100644 --- a/spec.html +++ b/spec.html @@ -36412,8 +36412,8 @@

The SharedArrayBuffer Constructor

-

SharedArrayBuffer ( [ _length_ ] )

-

When the `SharedArrayBuffer` function is called with optional argument _length_, the following steps are taken:

+

SharedArrayBuffer ( _length_ )

+

When the `SharedArrayBuffer` function is called with argument _length_, the following steps are taken:

1. If NewTarget is *undefined*, throw a *TypeError* exception. 1. Let _byteLength_ be ? ToIndex(_length_).