tor-browser

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

length.js (1146B)


      1 // Copyright (C) 2017 André Bargull. 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  Intl.DateTimeFormat.length is 0.
      8 info: |
      9  Intl.DateTimeFormat ( [ locales [ , options ] ] )
     10 
     11  17 ECMAScript Standard Built-in Objects:
     12 
     13    Every built-in function object, including constructors, has a length
     14    property whose value is an integer. Unless otherwise specified, this
     15    value is equal to the largest number of named arguments shown in the
     16    subclause headings for the function description. Optional parameters
     17    (which are indicated with brackets: [ ]) or rest parameters (which
     18    are shown using the form «...name») are not included in the default
     19    argument count.
     20    Unless otherwise specified, the length property of a built-in function
     21    object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
     22    [[Configurable]]: true }.
     23 
     24 includes: [propertyHelper.js]
     25 ---*/
     26 
     27 verifyProperty(Intl.DateTimeFormat, "length", {
     28  value: 0,
     29  writable: false,
     30  enumerable: false,
     31  configurable: true,
     32 });
     33 
     34 reportCompare(0, 0);