tor-browser

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

instance.js (631B)


      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    Intl.Locale instance object created from %LocalePrototype%.
      8 info: |
      9  Intl.Locale( tag [, options] )
     10 
     11  6. Let locale be ?
     12    OrdinaryCreateFromConstructor(NewTarget, %LocalePrototype%,
     13    internalSlotsList).
     14 features: [Intl.Locale]
     15 ---*/
     16 
     17 const value = new Intl.Locale('en');
     18 assert.sameValue(
     19    Object.getPrototypeOf(value),
     20    Intl.Locale.prototype,
     21    "Object.getPrototypeOf(value) equals the value of Intl.Locale.prototype"
     22 );
     23 
     24 reportCompare(0, 0);