| 1 |
// Copyright (C) 2016 the V8 project authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: sec-dataview-constructor |
| 6 |
description: > |
| 7 |
The length property of DataView has the default value of 1 |
| 8 |
info: | |
| 9 |
DataView ( buffer [ , byteOffset [ , byteLength ] ] ) |
| 10 |
|
| 11 |
ECMAScript Standard Built-in Objects: |
| 12 |
|
| 13 |
Every built-in function object, including constructors, has a length |
| 14 |
property whose value is an integer. Unless otherwise specified, this |
| 15 |
value is equal to the largest number of named arguments shown in the |
| 16 |
subclause headings for the function description. Optional parameters |
| 17 |
(which are indicated with brackets: [ ]) or rest parameters (which |
| 18 |
are shown using the form «...name») are not included in the default |
| 19 |
argument count. |
| 20 |
|
| 21 |
Unless otherwise specified, the length property of a built-in function |
| 22 |
object has the attributes { [[Writable]]: false, [[Enumerable]]: false, |
| 23 |
[[Configurable]]: true }. |
| 24 |
includes: [propertyHelper.js] |
| 25 |
features: [DataView] |
| 26 |
---*/ |
| 27 |
|
| 28 |
verifyProperty(DataView, "length", { |
| 29 |
value: 1, |
| 30 |
enumerable: false, |
| 31 |
writable: false, |
| 32 |
configurable: true, |
| 33 |
}); |