browser.js |
|
0 |
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: [testBigIntTypedArray.js, detachArrayBuffer.js]
features: [BigInt, TypedArray]
--- |
1640 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
908 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
894 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
744 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
965 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
1167 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
2747 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
2262 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
1524 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol, TypedArray]
--- |
656 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
835 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol, TypedArray]
--- |
710 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
894 |
shell.js |
---
description: |
Collection of functions used to assert the correctness of BigInt TypedArray objects.
defines:
- TypedArray
- testWithBigIntTypedArrayConstructors
--- |
1177 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
1110 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
1591 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol, TypedArray]
--- |
1659 |
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: [testBigIntTypedArray.js]
features: [BigInt, TypedArray]
--- |
1422 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1141 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1933 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1594 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1319 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1573 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1766 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1497 |
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: [testBigIntTypedArray.js]
features: [BigInt, Symbol.species, TypedArray]
--- |
1103 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
1586 |
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: [testBigIntTypedArray.js, compareArray.js]
features: [BigInt, TypedArray]
--- |
1587 |