| buffer-does-not-have-arraybuffer-data-throws-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a TypeError if buffer does not have [[ArrayBufferData]]
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
2. If Type(buffer) is not Object, throw a TypeError exception.
3. If buffer does not have an [[ArrayBufferData]] internal slot, throw a
TypeError exception.
...
features: [SharedArrayBuffer]
--- |
1158 |
- |
| buffer-does-not-have-arraybuffer-data-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a TypeError if buffer does not have [[ArrayBufferData]]
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
2. If Type(buffer) is not Object, throw a TypeError exception.
3. If buffer does not have an [[ArrayBufferData]] internal slot, throw a
TypeError exception.
...
features: [Int8Array]
--- |
1080 |
- |
| buffer-not-object-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a TypeError if buffer is not Object
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
1. If NewTarget is undefined, throw a TypeError exception.
2. If Type(buffer) is not Object, throw a TypeError exception.
...
features: [Symbol]
--- |
1245 |
- |
| buffer-reference-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Reuse buffer argument instead of making a new clone
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
14. Set O's [[ViewedArrayBuffer]] internal slot to buffer.
...
17. Return O.
features: [SharedArrayBuffer]
--- |
718 |
- |
| buffer-reference.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Reuse buffer argument instead of making a new clone
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
14. Set O's [[ViewedArrayBuffer]] internal slot to buffer.
...
17. Return O.
--- |
618 |
- |
| byteoffset-is-negative-throws-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if ToInteger(byteOffset) < 0
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
5. Let offset be ToInteger(numberOffset).
6. If numberOffset ≠ offset or offset < 0, throw a RangeError exception.
...
features: [SharedArrayBuffer]
--- |
819 |
- |
| byteoffset-is-negative-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if ToInteger(byteOffset) < 0
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
5. Let offset be ToInteger(numberOffset).
6. If numberOffset ≠ offset or offset < 0, throw a RangeError exception.
...
--- |
719 |
- |
| constructor.js |
---
esid: sec-dataview-constructor
es6id: 24.2.2
description: >
The DataView constructor is the %DataView% intrinsic object and the initial
value of the DataView property of the global object.
--- |
429 |
- |
| custom-proto-access-throws-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from newTarget's custom constructor prototype
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor,
intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
9.1.15 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
3. Let proto be ? Get(constructor, "prototype").
...
features: [Reflect.construct, SharedArrayBuffer]
--- |
1327 |
- |
| custom-proto-access-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from newTarget's custom constructor prototype
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor,
intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
9.1.15 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
3. Let proto be ? Get(constructor, "prototype").
...
features: [Reflect.construct]
--- |
1238 |
- |
| custom-proto-if-not-object-fallbacks-to-default-prototype-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Use DataView.prototype if newTarget's prototype is not an Object
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor,
intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
9.1.15 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
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.
5. Return proto.
...
features: [Reflect.construct, SharedArrayBuffer]
--- |
1516 |
- |
| custom-proto-if-not-object-fallbacks-to-default-prototype.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Use DataView.prototype if newTarget's prototype is not an Object
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor,
intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
9.1.15 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
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.
5. Return proto.
...
features: [Reflect.construct]
--- |
1427 |
- |
| custom-proto-if-object-is-used-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Use newTarget's custom constructor prototype if Object
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor,
intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
9.1.15 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
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.
5. Return proto.
...
features: [Reflect.construct, SharedArrayBuffer]
--- |
1508 |
- |
| custom-proto-if-object-is-used.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Use newTarget's custom constructor prototype if Object
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor,
intrinsicDefaultProto).
3. Return ObjectCreate(proto, internalSlotsList).
9.1.15 GetPrototypeFromConstructor ( constructor, intrinsicDefaultProto )
...
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.
5. Return proto.
...
features: [Reflect.construct]
--- |
1419 |
- |
| dataview.js |
---
esid: sec-dataview-constructor
es6id: 24.2.2
description: >
The DataView Constructor
includes: [propertyHelper.js]
--- |
380 |
- |
| defined-bytelength-and-byteoffset-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return new instance from defined length and offset
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
17. Return O.
features: [SharedArrayBuffer]
--- |
2524 |
- |
| defined-bytelength-and-byteoffset.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return new instance from defined length and offset
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
17. Return O.
--- |
2424 |
- |
| defined-byteoffset-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return new instance from defined offset
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
17. Return O.
features: [SharedArrayBuffer]
--- |
2078 |
- |
| defined-byteoffset-undefined-bytelength-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return new instance from defined byteoffset and undefined bytelength
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
8. If byteLength is either not present or undefined, then
a. Let viewByteLength be bufferByteLength - offset.
...
17. Return O.
features: [SharedArrayBuffer]
--- |
2284 |
- |
| defined-byteoffset-undefined-bytelength.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return new instance from defined byteoffset and undefined bytelength
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
8. If byteLength is either not present or undefined, then
a. Let viewByteLength be bufferByteLength - offset.
...
17. Return O.
--- |
2184 |
- |
| defined-byteoffset.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return new instance from defined offset
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
17. Return O.
--- |
1978 |
- |
| detached-buffer.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a TypeError if buffer is detached
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
...
7. If IsDetachedBuffer(buffer) is true, throw a TypeError exception.
...
includes: [detachArrayBuffer.js]
--- |
838 |
- |
| excessive-bytelength-throws-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws RangeError if offset + viewByteLength > bufferByteLength
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
10. If byteLength is undefined, then
...
11. Else,
a. Let viewByteLength be ? ToLength(byteLength).
b. If offset+viewByteLength > bufferByteLength, throw a RangeError
exception.
...
features: [SharedArrayBuffer]
--- |
1518 |
- |
| excessive-bytelength-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws RangeError if offset + viewByteLength > bufferByteLength
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
10. If byteLength is undefined, then
...
11. Else,
a. Let viewByteLength be ? ToLength(byteLength).
b. If offset+viewByteLength > bufferByteLength, throw a RangeError
exception.
...
--- |
1418 |
- |
| excessive-byteoffset-throws-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if offset > bufferByteLength
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
8. Let bufferByteLength be the value of buffer's [[ArrayBufferByteLength]]
internal slot.
9. If offset > bufferByteLength, throw a RangeError exception.
...
features: [SharedArrayBuffer]
--- |
803 |
- |
| excessive-byteoffset-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if offset > bufferByteLength
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
8. Let bufferByteLength be the value of buffer's [[ArrayBufferByteLength]]
internal slot.
9. If offset > bufferByteLength, throw a RangeError exception.
...
--- |
703 |
- |
| extensibility.js |
---
esid: sec-dataview-constructor
es6id: 24.2.2
description: >
The DataView constructor is extensible
info: |
17 ECMAScript Standard Built-in Objects
Unless specified otherwise, the [[Extensible]] internal slot of a built-in
object initially has the value true.
--- |
475 |
- |
| instance-extensibility-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The new instance is extensible
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
3. Return ObjectCreate(proto, internalSlotsList).
9.1.12 ObjectCreate (proto [ , internalSlotsList ])
...
5. Set the [[Extensible]] internal slot of obj to true.
...
features: [SharedArrayBuffer]
--- |
1013 |
- |
| instance-extensibility.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The new instance is extensible
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
9.1.13 OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ ,
internalSlotsList ] )
...
3. Return ObjectCreate(proto, internalSlotsList).
9.1.12 ObjectCreate (proto [ , internalSlotsList ])
...
5. Set the [[Extensible]] internal slot of obj to true.
...
--- |
913 |
- |
| length.js |
---
esid: sec-dataview-constructor
description: >
The length property of DataView has the default value of 1
info: |
DataView ( buffer [ , byteOffset [ , byteLength ] ] )
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: [DataView]
--- |
1158 |
- |
| name.js |
---
esid: sec-dataview-constructor
es6id: 24.2.2
description: >
The name property of DataView is "DataView"
includes: [propertyHelper.js]
--- |
496 |
- |
| negative-bytelength-throws-sab.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if ToInteger(byteLength) < 0
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
8. If byteLength is either not present or undefined, then
a. Let viewByteLength be bufferByteLength - offset.
9. Else,
a. Let viewByteLength be ? ToIndex(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.
...
features: [SharedArrayBuffer]
--- |
1311 |
- |
| negative-bytelength-throws.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if ToInteger(byteLength) < 0
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
8. If byteLength is either not present or undefined, then
a. Let viewByteLength be bufferByteLength - offset.
9. Else,
a. Let viewByteLength be ? ToIndex(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.
...
--- |
1211 |
- |
| negative-byteoffset-throws-sab.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if ToInteger(byteOffset) < 0
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let offset be ? ToIndex(byteOffset).
...
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.
...
features: [SharedArrayBuffer]
--- |
934 |
- |
| negative-byteoffset-throws.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a RangeError if ToInteger(byteOffset) < 0
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let offset be ? ToIndex(byteOffset).
...
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.
...
--- |
834 |
- |
| newtarget-undefined-throws-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a TypeError if NewTarget is undefined.
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
1. If NewTarget is undefined, throw a TypeError exception.
...
features: [SharedArrayBuffer]
--- |
732 |
- |
| newtarget-undefined-throws.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Throws a TypeError if NewTarget is undefined.
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
1. If NewTarget is undefined, throw a TypeError exception.
...
--- |
632 |
- |
| proto-from-ctor-realm-sab.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
es6id: 24.2.2.1
description: Default [[Prototype]] value derived from realm of the newTarget
info: |
[...]
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget,
"%DataViewPrototype%", « [[DataView]], [[ViewedArrayBuffer]],
[[ByteLength]], [[ByteOffset]] »).
[...]
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, SharedArrayBuffer]
--- |
1153 |
- |
| proto-from-ctor-realm.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
es6id: 24.2.2.1
description: Default [[Prototype]] value derived from realm of the newTarget
info: |
[...]
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget,
"%DataViewPrototype%", « [[DataView]], [[ViewedArrayBuffer]],
[[ByteLength]], [[ByteOffset]] »).
[...]
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]
--- |
1064 |
- |
| proto.js |
---
esid: sec-properties-of-the-dataview-constructor
es6id: 24.2.3
description: >
The prototype of DataView is Function.prototype
info: |
The value of the [[Prototype]] internal slot of the DataView constructor is
the intrinsic object %FunctionPrototype%.
--- |
481 |
- |
| prototype |
|
|
- |
| prototype.js |
---
esid: sec-dataview.prototype
es6id: 24.2.3.1
description: >
The initial value of DataView.prototype is the DataView prototype object.
info: |
The initial value of DataView.prototype is the intrinsic object
%DataViewPrototype%.
This property has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: false }.
includes: [propertyHelper.js]
--- |
658 |
- |
| return-abrupt-tonumber-bytelength-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToLength(byteLength)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
10. If byteLength is undefined, then
a. Let viewByteLength be bufferByteLength - offset.
11. Else,
a. Let viewByteLength be ? ToLength(byteLength).
...
features: [SharedArrayBuffer]
--- |
973 |
- |
| return-abrupt-tonumber-bytelength-symbol-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToLength(symbol byteLength)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
10. If byteLength is undefined, then
a. Let viewByteLength be bufferByteLength - offset.
11. Else,
a. Let viewByteLength be ? ToLength(byteLength).
...
features: [SharedArrayBuffer, Symbol]
--- |
750 |
- |
| return-abrupt-tonumber-bytelength-symbol.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToLength(symbol byteLength)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
10. If byteLength is undefined, then
a. Let viewByteLength be bufferByteLength - offset.
11. Else,
a. Let viewByteLength be ? ToLength(byteLength).
...
features: [Symbol]
--- |
661 |
- |
| return-abrupt-tonumber-bytelength.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToLength(byteLength)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
10. If byteLength is undefined, then
a. Let viewByteLength be bufferByteLength - offset.
11. Else,
a. Let viewByteLength be ? ToLength(byteLength).
...
--- |
873 |
- |
| return-abrupt-tonumber-byteoffset-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToNumber(byteOffset)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
...
features: [SharedArrayBuffer]
--- |
671 |
- |
| return-abrupt-tonumber-byteoffset-symbol-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToNumber(symbol byteOffset)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
...
features: [SharedArrayBuffer, Symbol]
--- |
628 |
- |
| return-abrupt-tonumber-byteoffset-symbol.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToNumber(symbol byteOffset)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
...
features: [Symbol]
--- |
539 |
- |
| return-abrupt-tonumber-byteoffset.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Return abrupt from ToNumber(byteOffset)
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
4. Let numberOffset be ? ToNumber(byteOffset).
...
--- |
571 |
- |
| return-instance-sab.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Returns new instance
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
features: [SharedArrayBuffer]
--- |
972 |
- |
| return-instance.js |
---
es6id: 24.2.2.1
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
Returns new instance
info: |
24.2.2.1 DataView (buffer, byteOffset, byteLength )
...
12. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataViewPrototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
17. Return O.
--- |
866 |
- |
| toindex-bytelength-sab.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
ToIndex conversions on byteLength
info: |
24.2.2.1 DataView ( buffer, byteOffset, byteLength )
...
8. If byteLength is either not present or undefined, then
a. Let viewByteLength be bufferByteLength - offset.
9. Else,
a. Let viewByteLength be ? ToIndex(byteLength).
b. If offset + viewByteLength > bufferByteLength, throw a RangeError
exception.
...
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.
features: [SharedArrayBuffer]
--- |
2599 |
- |
| toindex-bytelength.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
ToIndex conversions on byteLength
info: |
24.2.2.1 DataView ( buffer, byteOffset, byteLength )
...
8. If byteLength is either not present or undefined, then
a. Let viewByteLength be bufferByteLength - offset.
9. Else,
a. Let viewByteLength be ? ToIndex(byteLength).
b. If offset + viewByteLength > bufferByteLength, throw a RangeError
exception.
...
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.
--- |
2499 |
- |
| toindex-byteoffset-sab.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
ToIndex conversions on byteOffset
info: |
24.2.2.1 DataView ( buffer, byteOffset, byteLength )
...
4. Let offset be ? ToIndex(byteOffset).
...
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.
features: [SharedArrayBuffer]
--- |
2418 |
- |
| toindex-byteoffset.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
ToIndex conversions on byteOffset
info: |
24.2.2.1 DataView ( buffer, byteOffset, byteLength )
...
4. Let offset be ? ToIndex(byteOffset).
...
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.
--- |
2318 |
- |