Name Description Size
BigInt
browser.js 0
byteoffset-with-detached-buffer.js --- esid: sec-%typedarray%.prototype.subarray description: > Species constructor is called with the correct byte-offset value info: | %TypedArray%.prototype.subarray ( start, end ) ... 13. Let srcByteOffset be O.[[ByteOffset]]. 14. Let beginByteOffset be srcByteOffset + (startIndex × elementSize). ... 16. Else, ... f. Let argumentsList be « buffer, 𝔽(beginByteOffset), 𝔽(newLength) ». 17. Return ? TypedArraySpeciesCreate(O, argumentsList). features: [TypedArray] includes: [testTypedArray.js, detachArrayBuffer.js] --- 1273
coerced-begin-end-grow.js --- esid: sec-%typedarray%.prototype.subarray description: > TypedArray.p.subarray behaves correctly on TypedArrays backed by resizable buffers that are grown by argument coercion. includes: [compareArray.js, resizableArrayBufferUtils.js] features: [resizable-arraybuffer] --- 2867
coerced-begin-end-shrink.js --- esid: sec-%typedarray%.prototype.subarray description: > TypedArray.p.subarray behaves correctly on TypedArrays backed by resizable buffers that are shrunk by argument coercion. includes: [compareArray.js, resizableArrayBufferUtils.js] features: [resizable-arraybuffer] --- 5429
detached-buffer.js --- esid: sec-%typedarray%.prototype.subarray description: Throws a TypeError creating a new instance with a detached buffer info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 7. Let relativeBegin be ? ToInteger(begin). ... 9. If end is undefined, let relativeEnd be srcLength; else, let relativeEnd be ? ToInteger(end). ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). 4. Return ? TypedArrayCreate(constructor, argumentList). 22.2.4.6 TypedArrayCreate ( constructor, argumentList ) 1. Let newTypedArray be ? Construct(constructor, argumentList). ... 22.2.4.5 TypedArray ( buffer [ , byteOffset [ , length ] ] ) ... 11. If IsDetachedBuffer(buffer) is true, throw a TypeError exception. ... includes: [testTypedArray.js, detachArrayBuffer.js] features: [TypedArray] --- 1620
infinity.js --- esid: sec-%typedarray%.prototype.subarray description: Infinity values on begin and end info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 876
invoked-as-func.js --- esid: sec-%typedarray%.prototype.subarray description: Throws a TypeError exception when invoked as a function info: | 22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) 1. Let O be the this value. 2. If Type(O) is not Object, throw a TypeError exception. 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError exception. ... includes: [testTypedArray.js] features: [TypedArray] --- 751
invoked-as-method.js --- esid: sec-%typedarray%.prototype.subarray description: Requires a [[TypedArrayName]] internal slot. info: | 22.2.3.26 %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) 1. Let O be the this value. 2. If Type(O) is not Object, throw a TypeError exception. 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError exception. ... includes: [testTypedArray.js] features: [TypedArray] --- 782
length.js --- esid: sec-%typedarray%.prototype.subarray description: > %TypedArray%.prototype.subarray.length is 2. info: | %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) 17 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, including optional parameters. However, rest parameters 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, testTypedArray.js] features: [TypedArray] --- 1187
minus-zero.js --- esid: sec-%typedarray%.prototype.subarray description: -0 values on begin and end info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 862
name.js --- esid: sec-%typedarray%.prototype.subarray description: > %TypedArray%.prototype.subarray.name is "subarray". info: | %TypedArray%.prototype.subarray( [ begin [ , end ] ] ) 17 ECMAScript Standard Built-in Objects: Every built-in Function object, including constructors, that is not identified as an anonymous function has a name property whose value is a String. Unless otherwise specified, the name property of a built-in Function object, if it exists, has the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }. includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] --- 956
not-a-constructor.js --- esid: sec-ecmascript-standard-built-in-objects description: > TypedArray.prototype.subarray does not implement [[Construct]], is not new-able info: | ECMAScript Function Objects Built-in function objects that are not identified as constructors do not implement the [[Construct]] internal method unless otherwise specified in the description of a particular function. sec-evaluatenew ... 7. If IsConstructor(constructor) is false, throw a TypeError exception. ... includes: [isConstructor.js, testTypedArray.js] features: [Reflect.construct, arrow-function, TypedArray] --- 987
prop-desc.js --- esid: sec-%typedarray%.prototype.subarray description: > "subarray" property of TypedArrayPrototype info: | ES6 section 17: Every other data property described in clauses 18 through 26 and in Annex B.2 has the attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true } unless otherwise specified. includes: [propertyHelper.js, testTypedArray.js] features: [TypedArray] --- 735
resizable-buffer.js --- esid: sec-%typedarray%.prototype.subarray description: > TypedArray.p.subarray behaves correctly on TypedArrays backed by resizable buffers. includes: [compareArray.js, resizableArrayBufferUtils.js] features: [resizable-arraybuffer] --- 5527
result-byteOffset-from-out-of-bounds.js --- esid: sec-%typedarray%.prototype.subarray description: > Result has the correct byteOffset when input is initially out-of-bounds. info: | %TypedArray%.prototype.subarray ( start, end ) ... 13. Let srcByteOffset be O.[[ByteOffset]]. 14. Let beginByteOffset be srcByteOffset + (startIndex × elementSize). 15. If O.[[ArrayLength]] is auto and end is undefined, then a. Let argumentsList be « buffer, 𝔽(beginByteOffset) ». 16. ... e. Let newLength be max(endIndex - startIndex, 0). f. Let argumentsList be « buffer, 𝔽(beginByteOffset), 𝔽(newLength) ». 17. Return ? TypedArraySpeciesCreate(O, argumentsList). features: [TypedArray, resizable-arraybuffer] --- 1528
result-does-not-copy-ordinary-properties.js --- esid: sec-%typedarray%.prototype.subarray description: Subarray result does not import own property info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). includes: [testTypedArray.js] features: [TypedArray] --- 720
result-is-new-instance-from-same-ctor.js --- esid: sec-%typedarray%.prototype.subarray description: Returns a new instance from the same constructor info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 937
result-is-new-instance-with-shared-buffer.js --- esid: sec-%typedarray%.prototype.subarray description: Returns a new instance sharing the same buffer info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 1134
results-with-different-length.js --- esid: sec-%typedarray%.prototype.subarray description: Subarray may return a new instance with a smaller length info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 2670
results-with-empty-length.js --- esid: sec-%typedarray%.prototype.subarray description: Subarray may return a new empty instance info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). includes: [testTypedArray.js] features: [TypedArray] --- 2238
results-with-same-length.js --- esid: sec-%typedarray%.prototype.subarray description: Subarray may return a new instance with the same length info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). includes: [testTypedArray.js] features: [TypedArray] --- 1496
return-abrupt-from-begin-symbol.js --- esid: sec-%typedarray%.prototype.subarray description: Return abrupt from ToInteger(begin), begin is symbol info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 7. Let relativeBegin be ? ToInteger(begin). ... includes: [testTypedArray.js] features: [Symbol, TypedArray] --- 638
return-abrupt-from-begin.js --- esid: sec-%typedarray%.prototype.subarray description: Return abrupt from ToInteger(begin) info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 7. Let relativeBegin be ? ToInteger(begin). ... includes: [testTypedArray.js] features: [TypedArray] --- 819
return-abrupt-from-end-symbol.js --- esid: sec-%typedarray%.prototype.subarray description: Return abrupt from ToInteger(end), end is symbol info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 9. If end is undefined, let relativeEnd be srcLength; else, let relativeEnd be ? ToInteger(end). ... includes: [testTypedArray.js] features: [Symbol, TypedArray] --- 690
return-abrupt-from-end.js --- esid: sec-%typedarray%.prototype.subarray description: Return abrupt from ToInteger(end) info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 9. If end is undefined, let relativeEnd be srcLength; else, let relativeEnd be ? ToInteger(end). ... includes: [testTypedArray.js] features: [TypedArray] --- 878
shell.js --- description: | Test if a given function is a constructor function. defines: [isConstructor] features: [Reflect.construct] --- 596
speciesctor-get-ctor-abrupt.js --- esid: sec-%typedarray%.prototype.subarray description: Return abrupt from SpeciesConstructor's get Constructor info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) 1. Assert: Type(O) is Object. 2. Let C be ? Get(O, "constructor"). 3. If C is undefined, return defaultConstructor. ... includes: [testTypedArray.js] features: [TypedArray] --- 1086
speciesctor-get-ctor-inherited.js --- esid: sec-%typedarray%.prototype.subarray description: get inherited constructor on SpeciesConstructor info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) 1. Assert: Type(O) is Object. 2. Let C be ? Get(O, "constructor"). 3. If C is undefined, return defaultConstructor. ... includes: [testTypedArray.js] features: [TypedArray] --- 1567
speciesctor-get-ctor-returns-throws.js --- esid: sec-%typedarray%.prototype.subarray description: > Throws if O.constructor returns a non-Object and non-undefined value info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) 1. Assert: Type(O) is Object. 2. Let C be ? Get(O, "constructor"). 3. If C is undefined, return defaultConstructor. 4. If Type(C) is not Object, throw a TypeError exception. ... includes: [testTypedArray.js] features: [Symbol, TypedArray] --- 1635
speciesctor-get-ctor.js --- esid: sec-%typedarray%.prototype.subarray description: get constructor on SpeciesConstructor info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) 1. Assert: Type(O) is Object. 2. Let C be ? Get(O, "constructor"). 3. If C is undefined, return defaultConstructor. ... includes: [testTypedArray.js] features: [TypedArray] --- 1398
speciesctor-get-species-abrupt.js --- esid: sec-%typedarray%.prototype.subarray description: > Returns abrupt from get @@species on found constructor info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) 1. Assert: Type(O) is Object. 2. Let C be ? Get(O, "constructor"). ... 5. Let S be ? Get(C, @@species). ... includes: [testTypedArray.js] features: [Symbol.species, TypedArray] --- 1121
speciesctor-get-species-custom-ctor-invocation.js --- esid: sec-%typedarray%.prototype.subarray description: > Verify arguments on custom @@species construct call info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). 4. Return ? TypedArrayCreate(constructor, argumentList). 7.3.20 SpeciesConstructor ( O, defaultConstructor ) ... 5. Let S be ? Get(C, @@species). ... 7. If IsConstructor(S) is true, return S. ... 22.2.4.6 TypedArrayCreate ( constructor, argumentList ) 1. Let newTypedArray be ? Construct(constructor, argumentList). 2. Perform ? ValidateTypedArray(newTypedArray). 3. If argumentList is a List of a single Number, then ... 4. Return newTypedArray. includes: [testTypedArray.js] features: [Symbol.species, TypedArray] --- 1910
speciesctor-get-species-custom-ctor-returns-another-instance.js --- esid: sec-%typedarray%.prototype.subarray description: > Custom @@species constructor may return a totally different TypedArray info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). 4. Return ? TypedArrayCreate(constructor, argumentList). 7.3.20 SpeciesConstructor ( O, defaultConstructor ) ... 5. Let S be ? Get(C, @@species). ... 7. If IsConstructor(S) is true, return S. ... 22.2.4.6 TypedArrayCreate ( constructor, argumentList ) 1. Let newTypedArray be ? Construct(constructor, argumentList). 2. Perform ? ValidateTypedArray(newTypedArray). 3. If argumentList is a List of a single Number, then ... 4. Return newTypedArray. includes: [testTypedArray.js, compareArray.js] features: [Symbol.species, TypedArray] --- 1563
speciesctor-get-species-custom-ctor-throws.js --- esid: sec-%typedarray%.prototype.subarray description: > Custom @@species constructor throws if it does not return a compatible object info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). 4. Return ? TypedArrayCreate(constructor, argumentList). 7.3.20 SpeciesConstructor ( O, defaultConstructor ) ... 5. Let S be ? Get(C, @@species). ... 7. If IsConstructor(S) is true, return S. ... 22.2.4.6 TypedArrayCreate ( constructor, argumentList ) 1. Let newTypedArray be ? Construct(constructor, argumentList). 2. Perform ? ValidateTypedArray(newTypedArray). ... includes: [testTypedArray.js] features: [Symbol.species, TypedArray] --- 1299
speciesctor-get-species-custom-ctor.js --- esid: sec-%typedarray%.prototype.subarray description: > Use custom @@species constructor if available info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). 4. Return ? TypedArrayCreate(constructor, argumentList). 7.3.20 SpeciesConstructor ( O, defaultConstructor ) ... 5. Let S be ? Get(C, @@species). ... 7. If IsConstructor(S) is true, return S. ... 22.2.4.6 TypedArrayCreate ( constructor, argumentList ) 1. Let newTypedArray be ? Construct(constructor, argumentList). 2. Perform ? ValidateTypedArray(newTypedArray). 3. If argumentList is a List of a single Number, then ... 4. Return newTypedArray. includes: [testTypedArray.js, compareArray.js] features: [Symbol.species, TypedArray] --- 1548
speciesctor-get-species-returns-throws.js --- esid: sec-%typedarray%.prototype.subarray description: > Throws if returned @@species is not a constructor, null or undefined. info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) ... 5. Let S be ? Get(C, @@species). 6. If S is either undefined or null, return defaultConstructor. 7. If IsConstructor(S) is true, return S. 8. Throw a TypeError exception. ... includes: [testTypedArray.js] features: [Symbol.species, TypedArray] --- 1746
speciesctor-get-species-use-default-ctor.js --- esid: sec-%typedarray%.prototype.subarray description: > Use defaultConstructor if @@species is either undefined or null info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) ... 5. Let S be ? Get(C, @@species). 6. If S is either undefined or null, return defaultConstructor. ... includes: [testTypedArray.js] features: [Symbol.species, TypedArray] --- 1477
speciesctor-get-species.js --- esid: sec-%typedarray%.prototype.subarray description: > get @@species from found constructor info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 17. Return ? TypedArraySpeciesCreate(O, argumentsList). 22.2.4.7 TypedArraySpeciesCreate ( exemplar, argumentList ) ... 3. Let constructor be ? SpeciesConstructor(exemplar, defaultConstructor). ... 7.3.20 SpeciesConstructor ( O, defaultConstructor ) 1. Assert: Type(O) is Object. 2. Let C be ? Get(O, "constructor"). ... 5. Let S be ? Get(C, @@species). ... includes: [testTypedArray.js] features: [Symbol.species, TypedArray] --- 1083
this-is-not-object.js --- esid: sec-%typedarray%.prototype.subarray description: Throws a TypeError exception when `this` is not Object info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) The following steps are taken: 1. Let O be the this value. 2. If Type(O) is not Object, throw a TypeError exception. ... includes: [testTypedArray.js] features: [Symbol, TypedArray] --- 1237
this-is-not-typedarray-instance.js --- esid: sec-%typedarray%.prototype.subarray description: > Throws a TypeError exception when `this` is not a TypedArray instance info: | 22.2.3.9 %TypedArray%.prototype.subarray( begin , end ) The following steps are taken: 1. Let O be the this value. 2. If Type(O) is not Object, throw a TypeError exception. 3. If O does not have a [[TypedArrayName]] internal slot, throw a TypeError exception. ... includes: [testTypedArray.js] features: [TypedArray] --- 1154
tointeger-begin.js --- esid: sec-%typedarray%.prototype.subarray description: ToInteger(begin) info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 7. Let relativeBegin be ? ToInteger(begin). ... includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 1524
tointeger-end.js --- esid: sec-%typedarray%.prototype.subarray description: ToInteger(end) info: | 22.2.3.27 %TypedArray%.prototype.subarray( begin , end ) ... 9. If end is undefined, let relativeEnd be srcLength; else, let relativeEnd be ? ToInteger(end). ... includes: [testTypedArray.js, compareArray.js] features: [TypedArray] --- 1545