Debian Codegraph @

js/src/tests/test262/intl402/Segmenter/constructor/prop-desc.js

raw
1 // |reftest| skip-if(!Intl.Segmenter) -- Intl.Segmenter is not enabled unconditionally
2 // Copyright 2018 Igalia, S.L. All rights reserved.
3 // This code is governed by the BSD license found in the LICENSE file.
4
5 /*---
6 esid: sec-Intl.Segmenter
7 description: Verifies the "Segmenter" property of Intl.
8 info: |
9 Requirements for Standard Built-in ECMAScript Objects
10
11 Unless specified otherwise in this document, the objects, functions, and constructors
12 described in this standard are subject to the generic requirements and restrictions
13 specified for standard built-in ECMAScript objects in the ECMAScript 2018 Language
14 Specification, 9th edition, clause 17, or successor.
15
16 ECMAScript Standard Built-in Objects:
17
18 Every other data property described in clauses 18 through 26 and in Annex B.2 has the
19 attributes { [[Writable]]: true, [[Enumerable]]: false, [[Configurable]]: true }
20 unless otherwise specified.
21
22 includes: [propertyHelper.js]
23 features: [Intl.Segmenter]
24 ---*/
25
26 assert.sameValue(typeof Intl.Segmenter, "function");
27
28 verifyProperty(Intl, "Segmenter", {
29 value: Intl.Segmenter,
30 writable: true,
31 enumerable: false,
32 configurable: true,
33 });
34
35 reportCompare(0, 0);