tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

getCanonicalLocales.js (644B)


      1 // Copyright 2016 Mozilla Corporation. All rights reserved.
      2 // This code is governed by the license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-intl.getcanonicallocales
      6 description: Property type and descriptor. 
      7 info: |
      8  8.2.1 Intl.getCanonicalLocales (locales)
      9  1. Let ll be ? CanonicalizeLocaleList(locales).
     10  2. Return CreateArrayFromList(ll).
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 assert.sameValue(
     15  typeof Intl.getCanonicalLocales,
     16  'function',
     17  '`typeof Intl.getCanonicalLocales` is `function`'
     18 );
     19 
     20 verifyProperty(Intl, "getCanonicalLocales", {
     21  writable: true,
     22  enumerable: false,
     23  configurable: true,
     24 });
     25 
     26 reportCompare(0, 0);