mirror of
https://github.com/tc39/test262.git
synced 2025-07-23 14:04:51 +02:00
Fix length prop tests for the TypedArrays ctors family (#1479)
This commit is contained in:
parent
3af53b8087
commit
ccab9a18b0
@ -8,24 +8,26 @@ description: >
|
|||||||
info: |
|
info: |
|
||||||
ArrayBuffer ( length )
|
ArrayBuffer ( length )
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
Every built-in function object, including constructors, has a length
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
property whose value is an integer. Unless otherwise specified, this
|
||||||
[[Configurable]]: true }.
|
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]
|
includes: [propertyHelper.js]
|
||||||
|
features: [ArrayBuffer]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(ArrayBuffer.length, 1);
|
|
||||||
|
|
||||||
verifyProperty(ArrayBuffer, "length", {
|
verifyProperty(ArrayBuffer, "length", {
|
||||||
writable: false,
|
value: 1,
|
||||||
enumerable: false,
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
configurable: true,
|
configurable: true,
|
||||||
});
|
});
|
||||||
|
@ -3,14 +3,31 @@
|
|||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: sec-dataview-constructor
|
esid: sec-dataview-constructor
|
||||||
es6id: 24.2.2
|
|
||||||
description: >
|
description: >
|
||||||
The length property of DataView is 3
|
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]
|
includes: [propertyHelper.js]
|
||||||
|
features: [DataView]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(DataView.length, 3, "The value of `DataView.length` is `3`");
|
verifyProperty(DataView, "length", {
|
||||||
|
value: 1,
|
||||||
verifyNotEnumerable(DataView, "length");
|
enumerable: false,
|
||||||
verifyNotWritable(DataView, "length");
|
writable: false,
|
||||||
verifyConfigurable(DataView, "length");
|
configurable: true,
|
||||||
|
});
|
||||||
|
33
test/built-ins/SharedArrayBuffer/length.js
Normal file
33
test/built-ins/SharedArrayBuffer/length.js
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
// Copyright (C) 2018 Leo Balter. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
/*---
|
||||||
|
esid: sec-sharedarraybuffer-constructor
|
||||||
|
description: >
|
||||||
|
SharedArrayBuffer.length is 1.
|
||||||
|
info: |
|
||||||
|
SharedArrayBuffer( length )
|
||||||
|
|
||||||
|
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: [SharedArrayBuffer]
|
||||||
|
---*/
|
||||||
|
|
||||||
|
verifyProperty(SharedArrayBuffer, "length", {
|
||||||
|
value: 1,
|
||||||
|
enumerable: false,
|
||||||
|
writable: false,
|
||||||
|
configurable: true,
|
||||||
|
});
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
esid: pending
|
esid: sec-%typedarray%
|
||||||
description: Throw a TypeError exception if directly invoked.
|
description: Throw a TypeError exception if directly invoked.
|
||||||
info: |
|
info: |
|
||||||
22.2.1.1 %TypedArray% ( )
|
22.2.1.1 %TypedArray% ( )
|
||||||
|
@ -1,24 +1,29 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
esid: pending
|
esid: sec-%typedarray%
|
||||||
description: >
|
description: >
|
||||||
TypedArray has a "length" property whose value is 0.
|
TypedArray has a "length" property whose value is 0.
|
||||||
info: |
|
info: |
|
||||||
22.2.1.1 %TypedArray% ()
|
%TypedArray% ( )
|
||||||
|
|
||||||
The length property of the %TypedArray% constructor function is 0.
|
The length property of the %TypedArray% constructor function is 0.
|
||||||
|
|
||||||
|
17 ECMAScript Standard Built-in Objects
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
ES7 section 17: Unless otherwise specified, the length property of a built-in
|
Unless otherwise specified, the length property of a built-in function
|
||||||
Function object has the attributes { [[Writable]]: false, [[Enumerable]]:
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
false, [[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js, testTypedArray.js]
|
includes: [propertyHelper.js, testTypedArray.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(TypedArray.length, 0);
|
verifyProperty(TypedArray, "length", {
|
||||||
|
value: 0,
|
||||||
verifyNotEnumerable(TypedArray, 'length');
|
writable: false,
|
||||||
verifyNotWritable(TypedArray, 'length');
|
enumerable: false,
|
||||||
verifyConfigurable(TypedArray, 'length');
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.2
|
esid: sec-%typedarray%
|
||||||
description: >
|
description: >
|
||||||
TypedArray has a 'name' property whose value is "TypedArray".
|
TypedArray has a 'name' property whose value is "TypedArray".
|
||||||
info: |
|
info: |
|
||||||
|
2
test/built-ins/TypedArray/prototype.js
vendored
2
test/built-ins/TypedArray/prototype.js
vendored
@ -1,7 +1,7 @@
|
|||||||
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.2.3
|
esid: sec-%typedarray%
|
||||||
description: >
|
description: >
|
||||||
"prototype" property of TypedArray
|
"prototype" property of TypedArray
|
||||||
info: |
|
info: |
|
||||||
|
@ -5,27 +5,19 @@
|
|||||||
esid: sec-typedarray-constructors
|
esid: sec-typedarray-constructors
|
||||||
description: BigInt64Array.length property descriptor
|
description: BigInt64Array.length property descriptor
|
||||||
info: |
|
info: |
|
||||||
22.2.4 The TypedArray Constructors
|
The TypedArray Constructors
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
The length property of the TypedArray constructor function is 3.
|
The length property of the TypedArray constructor function is 3.
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects
|
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. 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
|
Unless otherwise specified, the length property of a built-in function
|
||||||
function object has the attributes { [[Writable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [BigInt]
|
features: [BigInt, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(BigInt64Array, "length", {
|
verifyProperty(BigInt64Array, "length", {
|
||||||
|
@ -5,27 +5,19 @@
|
|||||||
esid: sec-typedarray-constructors
|
esid: sec-typedarray-constructors
|
||||||
description: BigUint64Array.length property descriptor
|
description: BigUint64Array.length property descriptor
|
||||||
info: |
|
info: |
|
||||||
22.2.4 The TypedArray Constructors
|
The TypedArray Constructors
|
||||||
|
|
||||||
[...]
|
|
||||||
|
|
||||||
The length property of the TypedArray constructor function is 3.
|
The length property of the TypedArray constructor function is 3.
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects
|
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. 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
|
Unless otherwise specified, the length property of a built-in function
|
||||||
function object has the attributes { [[Writable]]: false,
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
[[Enumerable]]: false, [[Configurable]]: true }.
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [BigInt]
|
features: [BigInt, TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
verifyProperty(BigUint64Array, "length", {
|
verifyProperty(BigUint64Array, "length", {
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Float32Array.length property descriptor
|
||||||
description: >
|
|
||||||
Float32Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [BigInt]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Float32Array.length, 3);
|
verifyProperty(Float32Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Float32Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Float32Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Float32Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Float64Array.length property descriptor
|
||||||
description: >
|
|
||||||
Float64Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Float64Array.length, 3);
|
verifyProperty(Float64Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Float64Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Float64Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Float64Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Int16Array.length property descriptor
|
||||||
description: >
|
|
||||||
Int16Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Int16Array.length, 3);
|
verifyProperty(Int16Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Int16Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Int16Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Int16Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Int32Array.length property descriptor
|
||||||
description: >
|
|
||||||
Int32Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Int32Array.length, 3);
|
verifyProperty(Int32Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Int32Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Int32Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Int32Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Int8Array.length property descriptor
|
||||||
description: >
|
|
||||||
Int8Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Int8Array.length, 3);
|
verifyProperty(Int8Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Int8Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Int8Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Int8Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Uint16Array.length property descriptor
|
||||||
description: >
|
|
||||||
Uint16Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Uint16Array.length, 3);
|
verifyProperty(Uint16Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Uint16Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Uint16Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Uint16Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Uint32Array.length property descriptor
|
||||||
description: >
|
|
||||||
Uint32Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Uint32Array.length, 3);
|
verifyProperty(Uint32Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Uint32Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Uint32Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Uint32Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Uint8Array.length property descriptor
|
||||||
description: >
|
|
||||||
Uint8Array.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Uint8Array.length, 3);
|
verifyProperty(Uint8Array, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Uint8Array, "length");
|
writable: false,
|
||||||
verifyNotWritable(Uint8Array, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Uint8Array, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
@ -2,30 +2,27 @@
|
|||||||
// This code is governed by the BSD license found in the LICENSE file.
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
/*---
|
/*---
|
||||||
es6id: 22.2.5
|
esid: sec-typedarray-constructors
|
||||||
esid: sec-properties-of-the-typedarray-constructors
|
description: Uint8ClampedArray.length property descriptor
|
||||||
description: >
|
|
||||||
Uint8ClampedArray.length is 3.
|
|
||||||
info: |
|
info: |
|
||||||
Besides a length property (whose value is 3), [...].
|
The TypedArray Constructors
|
||||||
|
|
||||||
17 ECMAScript Standard Built-in Objects:
|
The length property of the TypedArray constructor function is 3.
|
||||||
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.
|
|
||||||
|
|
||||||
Unless otherwise specified, the length property of a built-in Function
|
17 ECMAScript Standard Built-in Objects
|
||||||
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
|
||||||
[[Configurable]]: true }.
|
...
|
||||||
|
|
||||||
|
Unless otherwise specified, the length property of a built-in function
|
||||||
|
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
|
||||||
|
[[Configurable]]: true }.
|
||||||
includes: [propertyHelper.js]
|
includes: [propertyHelper.js]
|
||||||
features: [TypedArray]
|
features: [TypedArray]
|
||||||
---*/
|
---*/
|
||||||
|
|
||||||
assert.sameValue(Uint8ClampedArray.length, 3);
|
verifyProperty(Uint8ClampedArray, "length", {
|
||||||
|
value: 3,
|
||||||
verifyNotEnumerable(Uint8ClampedArray, "length");
|
writable: false,
|
||||||
verifyNotWritable(Uint8ClampedArray, "length");
|
enumerable: false,
|
||||||
verifyConfigurable(Uint8ClampedArray, "length");
|
configurable: true
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user