Debian Codegraph @

js/src/tests/test262/intl402/Locale/extensions-private.js

raw
1 // Copyright 2018 Igalia, S.L. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 esid: sec-intl.locale
6 description: >
7 Verifies handling of options with privateuse tags.
8 info: |
9 ApplyOptionsToTag( tag, options )
10
11
12 ...
13 9. If tag matches neither the privateuse nor the grandfathered production, then
14 ...
15
16 features: [Intl.Locale]
17 ---*/
18
19 assert.throws(RangeError, () => new Intl.Locale("x-default", {
20 language: "fr",
21 script: "Cyrl",
22 region: "DE",
23 numberingSystem: "latn",
24 }));
25
26 reportCompare(0, 0);