tor-browser

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

intl-legacy-constructed-symbol.js (676B)


      1 // Copyright 2020 Apple Inc. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-intl.datetimeformat
      6 description: >
      7    Tests that [[FallbackSymbol]]'s [[Description]] is "IntlLegacyConstructedSymbol" if normative optional is implemented.
      8 author: Yusuke Suzuki
      9 features: [intl-normative-optional]
     10 ---*/
     11 
     12 let object = new Intl.DateTimeFormat();
     13 let newObject = Intl.DateTimeFormat.call(object);
     14 let symbols = Object.getOwnPropertySymbols(newObject);
     15 if (symbols.length !== 0) {
     16    assert.sameValue(symbols.length, 1);
     17    assert.sameValue(symbols[0].description, "IntlLegacyConstructedSymbol");
     18 }
     19 
     20 reportCompare(0, 0);