Backed out changeset e738f0bc7395 (bug 1900255) for causing Bug 1903197. a=backout
[gecko.git] / js / src / tests / test262 / built-ins / TypedArray / prototype / find / length.js
blobdc9eaeb1c1061d38e00540a01c312ff83ebd1cb1
1 // |reftest| shell-option(--enable-float16array)
2 // Copyright (C) 2015 André Bargull. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
5 /*---
6 esid: sec-%typedarray%.prototype.find
7 description: >
8   %TypedArray%.prototype.find.length is 1.
9 info: |
10   %TypedArray%.prototype.find (predicate [ , thisArg ] )
12   17 ECMAScript Standard Built-in Objects:
13     Every built-in Function object, including constructors, has a length
14     property whose value is an integer. Unless otherwise specified, this
15     value is equal to the largest number of named arguments shown in the
16     subclause headings for the function description, including optional
17     parameters. However, rest parameters shown using the form “...name”
18     are not included in the default argument count.
20     Unless otherwise specified, the length property of a built-in Function
21     object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
22     [[Configurable]]: true }.
23 includes: [propertyHelper.js, testTypedArray.js]
24 features: [TypedArray]
25 ---*/
27 verifyProperty(TypedArray.prototype.find, "length", {
28   value: 1,
29   writable: false,
30   enumerable: false,
31   configurable: true
32 });
34 reportCompare(0, 0);