Name Description Size Coverage
allocation-limit.js --- esid: sec-sharedarraybuffer-length description: > Throws a RangeError if requested Data Block is too large. info: | SharedArrayBuffer( length ) ... 3. Return AllocateSharedArrayBuffer(NewTarget, byteLength). 6.2.7.2 CreateSharedByteDataBlock(size) ... 2. Let db be a new Shared Data Block value consisting of size bytes. If it is impossible to create such a Shared Data Block, throw a RangeError exception. ... --- 1109 -
data-allocation-after-object-creation.js --- esid: sec-sharedarraybuffer-length description: > The new SharedArrayBuffer instance is created prior to allocating the Data Block. info: | SharedArrayBuffer( length ) ... 3. Return AllocateSharedArrayBuffer(NewTarget, byteLength). AllocateSharedArrayBuffer( constructor, byteLength ) 1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%", «[[ArrayBufferData]], [[ArrayBufferByteLength]]» ). ... 3. Let block be ? CreateByteDataBlock(byteLength). ... features: [Reflect.construct] --- 1148 -
init-zero.js --- esid: sec-createsharedbytedatablock description: All bytes are initialized to zero features: [DataView] --- 822 -
length-is-absent.js --- esid: sec-sharedarraybuffer-length description: > Returns an empty instance if length is absent info: | SharedArrayBuffer( length ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let byteLength be ? ToIndex(length). 3. Return ? AllocateSharedArrayBuffer(NewTarget, byteLength). --- 599 -
length-is-too-large-throws.js --- esid: sec-sharedarraybuffer-length description: > Throws a RangeError if length >= 2 ** 53 info: | SharedArrayBuffer( length ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let byteLength be ? ToIndex(length). ToIndex( value ) 1. If value is undefined, then a. Let index be 0. 2. Else, a. Let integerIndex be ? ToInteger(value). b. If integerIndex < 0, throw a RangeError exception. ... --- 925 -
length.js --- esid: sec-sharedarraybuffer-constructor description: > SharedArrayBuffer.length is 1. info: | SharedArrayBuffer( length ) ECMAScript Standard Built-in Objects: Every built-in function object, including constructors, has a length property whose value is an integer. Unless otherwise specified, this value is equal to the largest number of named arguments shown in the subclause headings for the function description. Optional parameters (which are indicated with brackets: [ ]) or rest parameters (which are shown using the form «...name») are not included in the default argument count. Unless otherwise specified, the length property of a built-in function object has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js] features: [SharedArrayBuffer] --- 1111 -
negative-length-throws.js --- esid: sec-sharedarraybuffer-length description: > Throws a Range Error if length represents an integer < 0 info: | SharedArrayBuffer( length ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let byteLength be ? ToIndex(length). ToIndex( value ) 1. If value is undefined, then a. Let index be 0. 2. Else, a. Let integerIndex be ? ToInteger(value). b. If integerIndex < 0, throw a RangeError exception. ... --- 893 -
newtarget-prototype-is-not-object.js --- esid: sec-sharedarraybuffer-length description: > [[Prototype]] defaults to %SharedArrayBufferPrototype% if NewTarget.prototype is not an object. info: | SharedArrayBuffer( length ) SharedArrayBuffer called with argument length performs the following steps: ... 3. Return AllocateSharedArrayBuffer(NewTarget, byteLength). AllocateSharedArrayBuffer( constructor, byteLength ) 1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%", «[[ArrayBufferData]], [[ArrayBufferByteLength]]» ). ... features: [Symbol, Reflect.construct] --- 2139 -
proto-from-ctor-realm.js --- esid: sec-sharedarraybuffer-length description: Default [[Prototype]] value derived from realm of the newTarget info: | [...] 3. Return ? AllocateSharedArrayBuffer(NewTarget, byteLength). 9.1.14 GetPrototypeFromConstructor [...] 3. Let proto be ? Get(constructor, "prototype"). 4. If Type(proto) is not Object, then a. Let realm be ? GetFunctionRealm(constructor). b. Let proto be realm's intrinsic object named intrinsicDefaultProto. [...] features: [cross-realm, Reflect] --- 957 -
prototype -
prototype-from-newtarget.js --- esid: sec-sharedarraybuffer-length description: > The [[Prototype]] internal slot is computed from NewTarget. info: | SharedArrayBuffer( length ) SharedArrayBuffer called with argument length performs the following steps: ... 3. Return AllocateSharedArrayBuffer(NewTarget, byteLength). AllocateSharedArrayBuffer( constructor, byteLength ) 1. Let obj be ? OrdinaryCreateFromConstructor(constructor, "%SharedArrayBufferPrototype%", «[[ArrayBufferData]], [[ArrayBufferByteLength]]» ). ... features: [Reflect.construct] --- 1276 -
return-abrupt-from-length-symbol.js --- esid: sec-sharedarraybuffer-length description: > Throws a TypeError if length is a symbol info: | SharedArrayBuffer( length ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let byteLength be ? ToIndex(length). ... features: [Symbol] --- 599 -
return-abrupt-from-length.js --- esid: sec-sharedarraybuffer-length description: > Return abrupt from ToIndex(length) info: | SharedArrayBuffer( length ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let byteLength be ? ToIndex(length). ... --- 600 -
toindex-length.js --- esid: sec-sharedarraybuffer-length description: > The `length` parameter is converted to a value numeric index value. info: | SharedArrayBuffer( length ) 1. If NewTarget is undefined, throw a TypeError exception. 2. Let byteLength be ? ToIndex(length). 3. Return ? AllocateSharedArrayBuffer(NewTarget, byteLength). ToIndex( value ) 1. If value is undefined, then a. Let index be 0. 2. Else, a. Let integerIndex be ? ToInteger(value). b. If integerIndex < 0, throw a RangeError exception. c. Let index be ! ToLength(integerIndex). d. If SameValueZero(integerIndex, index) is false, throw a RangeError exception. 3. Return index. --- 2467 -
undefined-newtarget-throws.js --- esid: sec-sharedarraybuffer-length description: > Throws a TypeError if SharedArrayBuffer is called as a function. info: | SharedArrayBuffer( length ) SharedArrayBuffer called with argument length performs the following steps: 1. If NewTarget is undefined, throw a TypeError exception. ... --- 643 -
zero-length.js --- esid: sec-sharedarraybuffer-length description: > The `length` parameter can be zero. info: | SharedArrayBuffer( length ) ... 2. Let numberLength be ToNumber(length). 3. Let byteLength be ToLength(numberLength). 4. ReturnIfAbrupt(byteLength). 5. If SameValueZero(numberLength, byteLength) is false, throw a RangeError exception. ... --- 743 -