browser.js |
|
0 |
buffer-does-not-have-arraybuffer-data-throws-sab.js |
---
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]
--- |
1280 |
buffer-does-not-have-arraybuffer-data-throws.js |
---
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]
--- |
1086 |
buffer-not-object-throws.js |
---
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]
--- |
1251 |
buffer-reference-sab.js |
---
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]
--- |
840 |
buffer-reference.js |
---
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.
--- |
624 |
byteoffset-is-negative-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 numberOffset be ? ToNumber(byteOffset).
5. Let offset be ToInteger(numberOffset).
6. If numberOffset ≠ offset or offset < 0, throw a RangeError exception.
...
features: [SharedArrayBuffer]
--- |
941 |
byteoffset-is-negative-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 numberOffset be ? ToNumber(byteOffset).
5. Let offset be ToInteger(numberOffset).
6. If numberOffset ≠ offset or offset < 0, throw a RangeError exception.
...
--- |
725 |
byteOffset-validated-against-initial-buffer-length.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The byteOffset argument is validated against the initial buffer length.
info: |
DataView ( buffer [ , byteOffset [ , byteLength ] ] )
...
3. Let offset be ? ToIndex(byteOffset).
...
5. Let bufferByteLength be ArrayBufferByteLength(buffer, seq-cst).
6. If offset > bufferByteLength, throw a RangeError exception.
...
10. Let O be ? OrdinaryCreateFromConstructor(NewTarget, "%DataView.prototype%",
« [[DataView]], [[ViewedArrayBuffer]], [[ByteLength]], [[ByteOffset]] »).
...
OrdinaryCreateFromConstructor ( constructor, intrinsicDefaultProto [ , internalSlotsList ] )
...
2. Let proto be ? GetPrototypeFromConstructor(constructor, intrinsicDefaultProto).
...
features: [Reflect.construct]
--- |
1359 |
constructor.js |
---
esid: sec-dataview-constructor
description: >
The DataView constructor is the %DataView% intrinsic object and the initial
value of the DataView property of the global object.
--- |
437 |
custom-proto-access-detaches-buffer.js |
---
author: Jeff Walden <jwalden+code@mit.edu>
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The `DataView` constructor shouldn't be able to return a `DataView` instance
backed by a detached `ArrayBuffer` when `OrdinaryCreateFromConstructor`
returns an instance so backed.
info: |
`OrdinaryCreateFromConstructor` has the potential to invoke user-defined code
that may detach the `ArrayBuffer` intended to underlie the fresh instance.
Verify that a final is-detached check is performed before the new instance is
returned.
includes: [detachArrayBuffer.js]
features: [Reflect.construct]
--- |
1204 |
custom-proto-access-resizes-buffer-invalid-by-length.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The sum of the view's offset and byte length cannot exceed the underlying
buffer's byte length if it is modified during retrieval of the NewTarget's
prototype.
features: [resizable-arraybuffer]
--- |
1486 |
custom-proto-access-resizes-buffer-invalid-by-offset.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The view's offset cannot exceed the underlying buffer's byte length if it is
modified during retrieval of the NewTarget's prototype.
features: [resizable-arraybuffer]
--- |
1454 |
custom-proto-access-resizes-buffer-valid-by-length.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The sum of the view's offset and byte length may equal the underlying
buffer's byte length if it is modified during retrieval of the NewTarget's
prototype.
features: [resizable-arraybuffer]
--- |
1380 |
custom-proto-access-resizes-buffer-valid-by-offset.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
description: >
The view's offset may equal the underlying buffer's byte length if it is
modified during retrieval of the NewTarget's prototype.
features: [resizable-arraybuffer]
--- |
1454 |
custom-proto-access-throws-sab.js |
---
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]
--- |
1449 |
custom-proto-access-throws.js |
---
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]
--- |
1244 |
custom-proto-if-not-object-fallbacks-to-default-prototype-sab.js |
---
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]
--- |
1638 |
custom-proto-if-not-object-fallbacks-to-default-prototype.js |
---
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]
--- |
1433 |
custom-proto-if-object-is-used-sab.js |
---
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]
--- |
1630 |
custom-proto-if-object-is-used.js |
---
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]
--- |
1425 |
dataview.js |
---
esid: sec-dataview-constructor
description: >
The DataView Constructor
includes: [propertyHelper.js]
--- |
388 |
defined-bytelength-and-byteoffset-sab.js |
---
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]
--- |
2646 |
defined-bytelength-and-byteoffset.js |
---
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.
--- |
2430 |
defined-byteoffset-sab.js |
---
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]
--- |
2200 |
defined-byteoffset-undefined-bytelength-sab.js |
---
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]
--- |
2406 |
defined-byteoffset-undefined-bytelength.js |
---
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.
--- |
2190 |
defined-byteoffset.js |
---
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.
--- |
1984 |
detached-buffer.js |
---
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]
--- |
844 |
excessive-bytelength-throws-sab.js |
---
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]
--- |
1640 |
excessive-bytelength-throws.js |
---
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.
...
--- |
1424 |
excessive-byteoffset-throws-sab.js |
---
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]
--- |
925 |
excessive-byteoffset-throws.js |
---
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.
...
--- |
709 |
extensibility.js |
---
esid: sec-dataview-constructor
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.
--- |
483 |
instance-extensibility-sab.js |
---
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]
includes: [propertyHelper.js]
--- |
1529 |
instance-extensibility.js |
---
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.
...
includes: [propertyHelper.js]
--- |
1313 |
is-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
The DataView constructor implements [[Construct]]
info: |
IsConstructor ( argument )
The abstract operation IsConstructor takes argument argument (an ECMAScript language value).
It determines if argument is a function object with a [[Construct]] internal method.
It performs the following steps when called:
If Type(argument) is not Object, return false.
If argument has a [[Construct]] internal method, return true.
Return false.
includes: [isConstructor.js]
features: [Reflect.construct, DataView, ArrayBuffer]
--- |
888 |
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]
--- |
1180 |
name.js |
---
esid: sec-dataview-constructor
description: >
The name property of DataView is "DataView"
includes: [propertyHelper.js]
--- |
417 |
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]
--- |
1449 |
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.
...
--- |
1233 |
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]
--- |
1072 |
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.
...
--- |
856 |
newtarget-undefined-throws-sab.js |
---
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]
--- |
854 |
newtarget-undefined-throws.js |
---
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.
...
--- |
638 |
proto-from-ctor-realm-sab.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
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]
--- |
1275 |
proto-from-ctor-realm.js |
---
esid: sec-dataview-buffer-byteoffset-bytelength
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]
--- |
1070 |
proto.js |
---
esid: sec-properties-of-the-dataview-constructor
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%.
--- |
489 |
prototype |
|
|
prototype.js |
---
esid: sec-dataview.prototype
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]
--- |
664 |
return-abrupt-tonumber-bytelength-sab.js |
---
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]
--- |
1095 |
return-abrupt-tonumber-bytelength-symbol-sab.js |
---
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]
--- |
872 |
return-abrupt-tonumber-bytelength-symbol.js |
---
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]
--- |
667 |
return-abrupt-tonumber-bytelength.js |
---
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).
...
--- |
879 |
return-abrupt-tonumber-byteoffset-sab.js |
---
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]
--- |
793 |
return-abrupt-tonumber-byteoffset-symbol-sab.js |
---
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]
--- |
750 |
return-abrupt-tonumber-byteoffset-symbol.js |
---
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]
--- |
545 |
return-abrupt-tonumber-byteoffset.js |
---
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).
...
--- |
577 |
return-instance-sab.js |
---
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]
--- |
1094 |
return-instance.js |
---
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.
--- |
872 |
shell.js |
---
description: |
Provide a list for original and expected values for different byte
conversions.
This helper is mostly used on tests for TypedArray and DataView, and each
array from the expected values must match the original values array on every
index containing its original value.
defines: [byteConversionValues]
--- |
21699 |
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]
--- |
2737 |
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.
--- |
2521 |
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]
--- |
2556 |
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.
--- |
2340 |