summaryrefslogtreecommitdiff
path: root/test/built-ins/TypedArrays/Float32Array/length.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/built-ins/TypedArrays/Float32Array/length.js')
-rw-r--r--test/built-ins/TypedArrays/Float32Array/length.js39
1 files changed, 18 insertions, 21 deletions
diff --git a/test/built-ins/TypedArrays/Float32Array/length.js b/test/built-ins/TypedArrays/Float32Array/length.js
index 41d18dd60..7bcdb1576 100644
--- a/test/built-ins/TypedArrays/Float32Array/length.js
+++ b/test/built-ins/TypedArrays/Float32Array/length.js
@@ -2,30 +2,27 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
-es6id: 22.2.5
-esid: sec-properties-of-the-typedarray-constructors
-description: >
- Float32Array.length is 3.
+esid: sec-typedarray-constructors
+description: Float32Array.length property descriptor
info: |
- Besides a length property (whose value is 3), [...].
+ The TypedArray Constructors
- 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.
+ The length property of the TypedArray constructor function is 3.
- Unless otherwise specified, the length property of a built-in Function
- object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
- [[Configurable]]: true }.
+ 17 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 }.
includes: [propertyHelper.js]
-features: [TypedArray]
+features: [BigInt]
---*/
-assert.sameValue(Float32Array.length, 3);
-
-verifyNotEnumerable(Float32Array, "length");
-verifyNotWritable(Float32Array, "length");
-verifyConfigurable(Float32Array, "length");
+verifyProperty(Float32Array, "length", {
+ value: 3,
+ writable: false,
+ enumerable: false,
+ configurable: true
+});