tor-browser

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

length.js (1090B)


      1 // Copyright (C) 2019 Leo Balter. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-Intl.DisplayNames
      6 description: >
      7  Intl.DisplayNames.length is 2.
      8 info: |
      9  ECMAScript Standard Built-in Objects:
     10 
     11  Every built-in function object, including constructors, has a length
     12  property whose value is an integer. Unless otherwise specified, this
     13  value is equal to the largest number of named arguments shown in the
     14  subclause headings for the function description. Optional parameters
     15  (which are indicated with brackets: [ ]) or rest parameters (which
     16  are shown using the form «...name») are not included in the default
     17  argument count.
     18 
     19  Unless otherwise specified, the length property of a built-in function
     20  object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
     21  [[Configurable]]: true }.
     22 includes: [propertyHelper.js]
     23 features: [Intl.DisplayNames]
     24 ---*/
     25 
     26 verifyProperty(Intl.DisplayNames, "length", {
     27  value: 2,
     28  enumerable: false,
     29  writable: false,
     30  configurable: true,
     31 });
     32 
     33 reportCompare(0, 0);