Add missing tests for "length" and "name" properties of %TypedArray% built-in functions

This commit is contained in:
André Bargull 2016-01-15 18:12:42 +01:00
parent ca61d9b876
commit 42edfd6e89
67 changed files with 1834 additions and 0 deletions

View File

@ -16,6 +16,11 @@ var typedArrayConstructors = [
Uint8ClampedArray,
];
/**
* The %TypedArray% intrinsic constructor function.
*/
var TypedArray = Object.getPrototypeOf(Int8Array);
/**
* Callback for testing a typed array constructor.
*

View File

@ -0,0 +1,32 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.4
description: >
get %TypedArray% [ @@species ].length is 0.
info: >
get %TypedArray% [ @@species ]
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
features: [Symbol.species]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray, Symbol.species);
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.4
description: >
get %TypedArray% [ @@species ].name is "get [Symbol.species]".
info: >
get %TypedArray% [ @@species ]
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
features: [Symbol.species]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray, Symbol.species);
assert.sameValue(desc.get.name, "get [Symbol.species]");
verifyNotEnumerable(desc.get, "name");
verifyNotWritable(desc.get, "name");
verifyConfigurable(desc.get, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.1
description: >
%TypedArray%.from.length is 1.
info: >
%TypedArray%.from ( source [ , mapfn [ , thisArg ] ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.from.length, 1);
verifyNotEnumerable(TypedArray.from, "length");
verifyNotWritable(TypedArray.from, "length");
verifyConfigurable(TypedArray.from, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.1
description: >
%TypedArray%.from.name is "from".
info: >
%TypedArray%.from ( source [ , mapfn [ , thisArg ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.from.name, "from");
verifyNotEnumerable(TypedArray.from, "name");
verifyNotWritable(TypedArray.from, "name");
verifyConfigurable(TypedArray.from, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.2
description: >
%TypedArray%.of.length is 0.
info: >
%TypedArray%.of ( ...items )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.of.length, 0);
verifyNotEnumerable(TypedArray.of, "length");
verifyNotWritable(TypedArray.of, "length");
verifyConfigurable(TypedArray.of, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.2.2
description: >
%TypedArray%.of.name is "of".
info: >
%TypedArray%.of ( ...items )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.of.name, "of");
verifyNotEnumerable(TypedArray.of, "name");
verifyNotWritable(TypedArray.of, "name");
verifyConfigurable(TypedArray.of, "name");

View File

@ -0,0 +1,22 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.30
description: >
Initial state of the Symbol.iterator property
info: >
The initial value of the @@iterator property is the same function object
as the initial value of the %TypedArray%.prototype.values property.
Per ES6 section 17, the method should exist on the %TypedArray% prototype, and it
should be writable and configurable, but not enumerable.
includes: [propertyHelper.js, testTypedArray.js]
features: [Symbol.iterator]
---*/
assert.sameValue(TypedArray.prototype[Symbol.iterator], TypedArray.prototype.values);
verifyNotEnumerable(TypedArray.prototype, Symbol.iterator);
verifyWritable(TypedArray.prototype, Symbol.iterator);
verifyConfigurable(TypedArray.prototype, Symbol.iterator);

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.31
description: >
get %TypedArray%.prototype [ @@toStringTag ].length is 0.
info: >
get %TypedArray%.prototype [ @@toStringTag ]
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag);
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.31
description: >
get %TypedArray%.prototype [ @@toStringTag ].name is "get [Symbol.toStringTag]".
info: >
get %TypedArray%.prototype [ @@toStringTag ]
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
features: [Symbol.toStringTag]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, Symbol.toStringTag);
assert.sameValue(desc.get.name, "get [Symbol.toStringTag]");
verifyNotEnumerable(desc.get, "name");
verifyNotWritable(desc.get, "name");
verifyConfigurable(desc.get, "name");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.1
description: >
get %TypedArray%.prototype.buffer.length is 0.
info: >
get %TypedArray%.prototype.buffer
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "buffer");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,28 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.1
description: >
get %TypedArray%.prototype.buffer.name is "get buffer".
info: >
get %TypedArray%.prototype.buffer
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "buffer");
assert.sameValue(desc.get.name, "get buffer");
verifyNotEnumerable(desc.get, "name");
verifyNotWritable(desc.get, "name");
verifyConfigurable(desc.get, "name");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.2
description: >
get %TypedArray%.prototype.byteLength.length is 0.
info: >
get %TypedArray%.prototype.byteLength
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLength");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,28 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.2
description: >
get %TypedArray%.prototype.byteLength.name is "get byteLength".
info: >
get %TypedArray%.prototype.byteLength
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteLength");
assert.sameValue(desc.get.name, "get byteLength");
verifyNotEnumerable(desc.get, "name");
verifyNotWritable(desc.get, "name");
verifyConfigurable(desc.get, "name");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.3
description: >
get %TypedArray%.prototype.byteOffset.length is 0.
info: >
get %TypedArray%.prototype.byteOffset
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,28 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.3
description: >
get %TypedArray%.prototype.byteOffset.name is "get byteOffset".
info: >
get %TypedArray%.prototype.byteOffset
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "byteOffset");
assert.sameValue(desc.get.name, "get byteOffset");
verifyNotEnumerable(desc.get, "name");
verifyNotWritable(desc.get, "name");
verifyConfigurable(desc.get, "name");

View File

@ -0,0 +1,20 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.4
description: >
Initial state of the constructor property
info: >
The initial value of %TypedArray%.prototype.constructor is the %TypedArray% intrinsic object.
Per ES6 section 17, the method should exist on the %TypedArray% prototype, and it
should be writable and configurable, but not enumerable.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.constructor, TypedArray);
verifyNotEnumerable(TypedArray.prototype, "constructor");
verifyWritable(TypedArray.prototype, "constructor");
verifyConfigurable(TypedArray.prototype, "constructor");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.5
description: >
%TypedArray%.prototype.copyWithin.length is 2.
info: >
%TypedArray%.prototype.copyWithin (target, start [, end ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.copyWithin.length, 2);
verifyNotEnumerable(TypedArray.prototype.copyWithin, "length");
verifyNotWritable(TypedArray.prototype.copyWithin, "length");
verifyConfigurable(TypedArray.prototype.copyWithin, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.5
description: >
%TypedArray%.prototype.copyWithin.name is "copyWithin".
info: >
%TypedArray%.prototype.copyWithin (target, start [, end ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.copyWithin.name, "copyWithin");
verifyNotEnumerable(TypedArray.prototype.copyWithin, "name");
verifyNotWritable(TypedArray.prototype.copyWithin, "name");
verifyConfigurable(TypedArray.prototype.copyWithin, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.6
description: >
%TypedArray%.prototype.entries.length is 0.
info: >
%TypedArray%.prototype.entries ( )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.entries.length, 0);
verifyNotEnumerable(TypedArray.prototype.entries, "length");
verifyNotWritable(TypedArray.prototype.entries, "length");
verifyConfigurable(TypedArray.prototype.entries, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.6
description: >
%TypedArray%.prototype.entries.name is "entries".
info: >
%TypedArray%.prototype.entries ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.entries.name, "entries");
verifyNotEnumerable(TypedArray.prototype.entries, "name");
verifyNotWritable(TypedArray.prototype.entries, "name");
verifyConfigurable(TypedArray.prototype.entries, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.7
description: >
%TypedArray%.prototype.every.length is 1.
info: >
%TypedArray%.prototype.every ( callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.every.length, 1);
verifyNotEnumerable(TypedArray.prototype.every, "length");
verifyNotWritable(TypedArray.prototype.every, "length");
verifyConfigurable(TypedArray.prototype.every, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.7
description: >
%TypedArray%.prototype.every.name is "every".
info: >
%TypedArray%.prototype.every ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.every.name, "every");
verifyNotEnumerable(TypedArray.prototype.every, "name");
verifyNotWritable(TypedArray.prototype.every, "name");
verifyConfigurable(TypedArray.prototype.every, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.8
description: >
%TypedArray%.prototype.fill.length is 1.
info: >
%TypedArray%.prototype.fill (value [ , start [ , end ] ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.fill.length, 1);
verifyNotEnumerable(TypedArray.prototype.fill, "length");
verifyNotWritable(TypedArray.prototype.fill, "length");
verifyConfigurable(TypedArray.prototype.fill, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.8
description: >
%TypedArray%.prototype.fill.name is "fill".
info: >
%TypedArray%.prototype.fill (value [ , start [ , end ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.fill.name, "fill");
verifyNotEnumerable(TypedArray.prototype.fill, "name");
verifyNotWritable(TypedArray.prototype.fill, "name");
verifyConfigurable(TypedArray.prototype.fill, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.9
description: >
%TypedArray%.prototype.filter.length is 1.
info: >
%TypedArray%.prototype.filter ( callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.filter.length, 1);
verifyNotEnumerable(TypedArray.prototype.filter, "length");
verifyNotWritable(TypedArray.prototype.filter, "length");
verifyConfigurable(TypedArray.prototype.filter, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.9
description: >
%TypedArray%.prototype.filter.name is "filter".
info: >
%TypedArray%.prototype.filter ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.filter.name, "filter");
verifyNotEnumerable(TypedArray.prototype.filter, "name");
verifyNotWritable(TypedArray.prototype.filter, "name");
verifyConfigurable(TypedArray.prototype.filter, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.10
description: >
%TypedArray%.prototype.find.length is 1.
info: >
%TypedArray%.prototype.find (predicate [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.find.length, 1);
verifyNotEnumerable(TypedArray.prototype.find, "length");
verifyNotWritable(TypedArray.prototype.find, "length");
verifyConfigurable(TypedArray.prototype.find, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.10
description: >
%TypedArray%.prototype.find.name is "find".
info: >
%TypedArray%.prototype.find (predicate [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.find.name, "find");
verifyNotEnumerable(TypedArray.prototype.find, "name");
verifyNotWritable(TypedArray.prototype.find, "name");
verifyConfigurable(TypedArray.prototype.find, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.11
description: >
%TypedArray%.prototype.findIndex.length is 1.
info: >
%TypedArray%.prototype.findIndex (predicate [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.findIndex.length, 1);
verifyNotEnumerable(TypedArray.prototype.findIndex, "length");
verifyNotWritable(TypedArray.prototype.findIndex, "length");
verifyConfigurable(TypedArray.prototype.findIndex, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.11
description: >
%TypedArray%.prototype.findIndex.name is "findIndex".
info: >
%TypedArray%.prototype.findIndex (predicate [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.findIndex.name, "findIndex");
verifyNotEnumerable(TypedArray.prototype.findIndex, "name");
verifyNotWritable(TypedArray.prototype.findIndex, "name");
verifyConfigurable(TypedArray.prototype.findIndex, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.12
description: >
%TypedArray%.prototype.forEach.length is 1.
info: >
%TypedArray%.prototype.forEach (callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.forEach.length, 1);
verifyNotEnumerable(TypedArray.prototype.forEach, "length");
verifyNotWritable(TypedArray.prototype.forEach, "length");
verifyConfigurable(TypedArray.prototype.forEach, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.12
description: >
%TypedArray%.prototype.forEach.name is "forEach".
info: >
%TypedArray%.prototype.forEach (callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.forEach.name, "forEach");
verifyNotEnumerable(TypedArray.prototype.forEach, "name");
verifyNotWritable(TypedArray.prototype.forEach, "name");
verifyConfigurable(TypedArray.prototype.forEach, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.13
description: >
%TypedArray%.prototype.indexOf.length is 1.
info: >
%TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.indexOf.length, 1);
verifyNotEnumerable(TypedArray.prototype.indexOf, "length");
verifyNotWritable(TypedArray.prototype.indexOf, "length");
verifyConfigurable(TypedArray.prototype.indexOf, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.13
description: >
%TypedArray%.prototype.indexOf.name is "indexOf".
info: >
%TypedArray%.prototype.indexOf (searchElement [ , fromIndex ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.indexOf.name, "indexOf");
verifyNotEnumerable(TypedArray.prototype.indexOf, "name");
verifyNotWritable(TypedArray.prototype.indexOf, "name");
verifyConfigurable(TypedArray.prototype.indexOf, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.14
description: >
%TypedArray%.prototype.join.length is 1.
info: >
%TypedArray%.prototype.join ( separator )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.join.length, 1);
verifyNotEnumerable(TypedArray.prototype.join, "length");
verifyNotWritable(TypedArray.prototype.join, "length");
verifyConfigurable(TypedArray.prototype.join, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.14
description: >
%TypedArray%.prototype.join.name is "join".
info: >
%TypedArray%.prototype.join ( separator )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.join.name, "join");
verifyNotEnumerable(TypedArray.prototype.join, "name");
verifyNotWritable(TypedArray.prototype.join, "name");
verifyConfigurable(TypedArray.prototype.join, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.15
description: >
%TypedArray%.prototype.keys.length is 0.
info: >
%TypedArray%.prototype.keys ( )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.keys.length, 0);
verifyNotEnumerable(TypedArray.prototype.keys, "length");
verifyNotWritable(TypedArray.prototype.keys, "length");
verifyConfigurable(TypedArray.prototype.keys, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.15
description: >
%TypedArray%.prototype.keys.name is "keys".
info: >
%TypedArray%.prototype.keys ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.keys.name, "keys");
verifyNotEnumerable(TypedArray.prototype.keys, "name");
verifyNotWritable(TypedArray.prototype.keys, "name");
verifyConfigurable(TypedArray.prototype.keys, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.16
description: >
%TypedArray%.prototype.lastIndexOf.length is 1.
info: >
%TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.lastIndexOf.length, 1);
verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "length");
verifyNotWritable(TypedArray.prototype.lastIndexOf, "length");
verifyConfigurable(TypedArray.prototype.lastIndexOf, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.16
description: >
%TypedArray%.prototype.lastIndexOf.name is "lastIndexOf".
info: >
%TypedArray%.prototype.lastIndexOf ( searchElement [ , fromIndex ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.lastIndexOf.name, "lastIndexOf");
verifyNotEnumerable(TypedArray.prototype.lastIndexOf, "name");
verifyNotWritable(TypedArray.prototype.lastIndexOf, "name");
verifyConfigurable(TypedArray.prototype.lastIndexOf, "name");

View File

@ -0,0 +1,31 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.17
description: >
get %TypedArray%.prototype.length.length is 0.
info: >
get %TypedArray%.prototype.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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "length");
assert.sameValue(desc.get.length, 0);
verifyNotEnumerable(desc.get, "length");
verifyNotWritable(desc.get, "length");
verifyConfigurable(desc.get, "length");

View File

@ -0,0 +1,28 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.17
description: >
get %TypedArray%.prototype.length.name is "get length".
info: >
get %TypedArray%.prototype.length
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
var desc = Object.getOwnPropertyDescriptor(TypedArray.prototype, "length");
assert.sameValue(desc.get.name, "get length");
verifyNotEnumerable(desc.get, "name");
verifyNotWritable(desc.get, "name");
verifyConfigurable(desc.get, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.18
description: >
%TypedArray%.prototype.map.length is 1.
info: >
%TypedArray%.prototype.map ( callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.map.length, 1);
verifyNotEnumerable(TypedArray.prototype.map, "length");
verifyNotWritable(TypedArray.prototype.map, "length");
verifyConfigurable(TypedArray.prototype.map, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.18
description: >
%TypedArray%.prototype.map.name is "map".
info: >
%TypedArray%.prototype.map ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.map.name, "map");
verifyNotEnumerable(TypedArray.prototype.map, "name");
verifyNotWritable(TypedArray.prototype.map, "name");
verifyConfigurable(TypedArray.prototype.map, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.19
description: >
%TypedArray%.prototype.reduce.length is 1.
info: >
%TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.reduce.length, 1);
verifyNotEnumerable(TypedArray.prototype.reduce, "length");
verifyNotWritable(TypedArray.prototype.reduce, "length");
verifyConfigurable(TypedArray.prototype.reduce, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.19
description: >
%TypedArray%.prototype.reduce.name is "reduce".
info: >
%TypedArray%.prototype.reduce ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.reduce.name, "reduce");
verifyNotEnumerable(TypedArray.prototype.reduce, "name");
verifyNotWritable(TypedArray.prototype.reduce, "name");
verifyConfigurable(TypedArray.prototype.reduce, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.20
description: >
%TypedArray%.prototype.reduceRight.length is 1.
info: >
%TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.reduceRight.length, 1);
verifyNotEnumerable(TypedArray.prototype.reduceRight, "length");
verifyNotWritable(TypedArray.prototype.reduceRight, "length");
verifyConfigurable(TypedArray.prototype.reduceRight, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.20
description: >
%TypedArray%.prototype.reduceRight.name is "reduceRight".
info: >
%TypedArray%.prototype.reduceRight ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.reduceRight.name, "reduceRight");
verifyNotEnumerable(TypedArray.prototype.reduceRight, "name");
verifyNotWritable(TypedArray.prototype.reduceRight, "name");
verifyConfigurable(TypedArray.prototype.reduceRight, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.21
description: >
%TypedArray%.prototype.reverse.length is 0.
info: >
%TypedArray%.prototype.reverse ( )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.reverse.length, 0);
verifyNotEnumerable(TypedArray.prototype.reverse, "length");
verifyNotWritable(TypedArray.prototype.reverse, "length");
verifyConfigurable(TypedArray.prototype.reverse, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.21
description: >
%TypedArray%.prototype.reverse.name is "reverse".
info: >
%TypedArray%.prototype.reverse ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.reverse.name, "reverse");
verifyNotEnumerable(TypedArray.prototype.reverse, "name");
verifyNotWritable(TypedArray.prototype.reverse, "name");
verifyConfigurable(TypedArray.prototype.reverse, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.22
description: >
%TypedArray%.prototype.set.length is 1.
info: >
%TypedArray%.prototype.set ( overloaded [ , offset ])
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.set.length, 1);
verifyNotEnumerable(TypedArray.prototype.set, "length");
verifyNotWritable(TypedArray.prototype.set, "length");
verifyConfigurable(TypedArray.prototype.set, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.22
description: >
%TypedArray%.prototype.set.name is "set".
info: >
%TypedArray%.prototype.set ( overloaded [ , offset ])
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.set.name, "set");
verifyNotEnumerable(TypedArray.prototype.set, "name");
verifyNotWritable(TypedArray.prototype.set, "name");
verifyConfigurable(TypedArray.prototype.set, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.23
description: >
%TypedArray%.prototype.slice.length is 2.
info: >
%TypedArray%.prototype.slice ( start, end )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.slice.length, 2);
verifyNotEnumerable(TypedArray.prototype.slice, "length");
verifyNotWritable(TypedArray.prototype.slice, "length");
verifyConfigurable(TypedArray.prototype.slice, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.23
description: >
%TypedArray%.prototype.slice.name is "slice".
info: >
%TypedArray%.prototype.slice ( start, end )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.slice.name, "slice");
verifyNotEnumerable(TypedArray.prototype.slice, "name");
verifyNotWritable(TypedArray.prototype.slice, "name");
verifyConfigurable(TypedArray.prototype.slice, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.24
description: >
%TypedArray%.prototype.some.length is 1.
info: >
%TypedArray%.prototype.some ( callbackfn [ , thisArg ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.some.length, 1);
verifyNotEnumerable(TypedArray.prototype.some, "length");
verifyNotWritable(TypedArray.prototype.some, "length");
verifyConfigurable(TypedArray.prototype.some, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.24
description: >
%TypedArray%.prototype.some.name is "some".
info: >
%TypedArray%.prototype.some ( callbackfn [ , thisArg ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.some.name, "some");
verifyNotEnumerable(TypedArray.prototype.some, "name");
verifyNotWritable(TypedArray.prototype.some, "name");
verifyConfigurable(TypedArray.prototype.some, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.25
description: >
%TypedArray%.prototype.sort.length is 1.
info: >
%TypedArray%.prototype.sort ( comparefn )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.sort.length, 1);
verifyNotEnumerable(TypedArray.prototype.sort, "length");
verifyNotWritable(TypedArray.prototype.sort, "length");
verifyConfigurable(TypedArray.prototype.sort, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.25
description: >
%TypedArray%.prototype.sort.name is "sort".
info: >
%TypedArray%.prototype.sort ( comparefn )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.sort.name, "sort");
verifyNotEnumerable(TypedArray.prototype.sort, "name");
verifyNotWritable(TypedArray.prototype.sort, "name");
verifyConfigurable(TypedArray.prototype.sort, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.26
description: >
%TypedArray%.prototype.subarray.length is 2.
info: >
%TypedArray%.prototype.subarray( [ begin [ , end ] ] )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.subarray.length, 2);
verifyNotEnumerable(TypedArray.prototype.subarray, "length");
verifyNotWritable(TypedArray.prototype.subarray, "length");
verifyConfigurable(TypedArray.prototype.subarray, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.26
description: >
%TypedArray%.prototype.subarray.name is "subarray".
info: >
%TypedArray%.prototype.subarray( [ begin [ , end ] ] )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.subarray.name, "subarray");
verifyNotEnumerable(TypedArray.prototype.subarray, "name");
verifyNotWritable(TypedArray.prototype.subarray, "name");
verifyConfigurable(TypedArray.prototype.subarray, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.27
description: >
%TypedArray%.prototype.toLocaleString.length is 0.
info: >
%TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ])
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.toLocaleString.length, 0);
verifyNotEnumerable(TypedArray.prototype.toLocaleString, "length");
verifyNotWritable(TypedArray.prototype.toLocaleString, "length");
verifyConfigurable(TypedArray.prototype.toLocaleString, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.27
description: >
%TypedArray%.prototype.toLocaleString.name is "toLocaleString".
info: >
%TypedArray%.prototype.toLocaleString ([ reserved1 [ , reserved2 ] ])
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.toLocaleString.name, "toLocaleString");
verifyNotEnumerable(TypedArray.prototype.toLocaleString, "name");
verifyNotWritable(TypedArray.prototype.toLocaleString, "name");
verifyConfigurable(TypedArray.prototype.toLocaleString, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.28
description: >
%TypedArray%.prototype.toString.length is 0.
info: >
%TypedArray%.prototype.toString ( )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.toString.length, 0);
verifyNotEnumerable(TypedArray.prototype.toString, "length");
verifyNotWritable(TypedArray.prototype.toString, "length");
verifyConfigurable(TypedArray.prototype.toString, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.28
description: >
%TypedArray%.prototype.toString.name is "toString".
info: >
%TypedArray%.prototype.toString ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.toString.name, "toString");
verifyNotEnumerable(TypedArray.prototype.toString, "name");
verifyNotWritable(TypedArray.prototype.toString, "name");
verifyConfigurable(TypedArray.prototype.toString, "name");

View File

@ -0,0 +1,29 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.29
description: >
%TypedArray%.prototype.values.length is 0.
info: >
%TypedArray%.prototype.values ( )
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.
Unless otherwise specified, the length property of a built-in Function
object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
[[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.values.length, 0);
verifyNotEnumerable(TypedArray.prototype.values, "length");
verifyNotWritable(TypedArray.prototype.values, "length");
verifyConfigurable(TypedArray.prototype.values, "length");

View File

@ -0,0 +1,26 @@
// Copyright (C) 2015 André Bargull. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 22.2.3.29
description: >
%TypedArray%.prototype.values.name is "values".
info: >
%TypedArray%.prototype.values ( )
17 ECMAScript Standard Built-in Objects:
Every built-in Function object, including constructors, that is not
identified as an anonymous function has a name property whose value
is a String.
Unless otherwise specified, the name property of a built-in Function
object, if it exists, has the attributes { [[Writable]]: false,
[[Enumerable]]: false, [[Configurable]]: true }.
includes: [propertyHelper.js, testTypedArray.js]
---*/
assert.sameValue(TypedArray.prototype.values.name, "values");
verifyNotEnumerable(TypedArray.prototype.values, "name");
verifyNotWritable(TypedArray.prototype.values, "name");
verifyConfigurable(TypedArray.prototype.values, "name");