summaryrefslogtreecommitdiff
path: root/test/built-ins/ArrayBuffer/length.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/ArrayBuffer/length.js')
-rw-r--r--test/built-ins/ArrayBuffer/length.js28
1 files changed, 15 insertions, 13 deletions
diff --git a/test/built-ins/ArrayBuffer/length.js b/test/built-ins/ArrayBuffer/length.js
index 413f82c84..efb17544c 100644
--- a/test/built-ins/ArrayBuffer/length.js
+++ b/test/built-ins/ArrayBuffer/length.js
@@ -8,24 +8,26 @@ description: >
info: |
ArrayBuffer ( length )
- 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.
+ ECMAScript Standard Built-in Objects:
- Unless otherwise specified, the length property of a built-in Function
- object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
- [[Configurable]]: true }.
+ 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: [ArrayBuffer]
---*/
-assert.sameValue(ArrayBuffer.length, 1);
-
verifyProperty(ArrayBuffer, "length", {
- writable: false,
+ value: 1,
enumerable: false,
+ writable: false,
configurable: true,
});