Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/intl402/Collator/length.js

raw
1 // Copyright (C) 2017 André Bargull. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-intl.collator
6 description: >
7 Intl.Collator.length is 0.
8 info: |
9 Intl.Collator ( [ locales [ , options ] ] )
10
11 17 ECMAScript Standard Built-in Objects:
12
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. Optional parameters
17 (which are indicated with brackets: [ ]) or rest parameters (which
18 are shown using the form «...name») are not included in the default
19 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
24 includes: [propertyHelper.js]
25 ---*/
26
27 assert.sameValue(Intl.Collator.length, 0);
28
29 verifyNotEnumerable(Intl.Collator, "length");
30 verifyNotWritable(Intl.Collator, "length");
31 verifyConfigurable(Intl.Collator, "length");