tor-browser

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

length.js (1000B)


      1 // Copyright (C) 2024 André Bargull. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 esid: sec-date.parse
      6 description: >
      7  Date.parse.length is 1.
      8 info: |
      9  Date.parse ( string )
     10 
     11  17 ECMAScript Standard Built-in Objects:
     12    Every built-in function object, including constructors, has a "length"
     13    property whose value is a non-negative integral Number. Unless otherwise
     14    specified, this value is the number of required parameters shown in the
     15    subclause heading for the function description. Optional parameters and rest
     16    parameters are not included in the parameter count.
     17 
     18    Unless otherwise specified, the "length" property of a built-in function
     19    object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
     20    [[Configurable]]: true }.
     21 includes: [propertyHelper.js]
     22 ---*/
     23 
     24 verifyProperty(Date.parse, "length", {
     25  value: 1,
     26  writable: false,
     27  enumerable: false,
     28  configurable: true,
     29 });
     30 
     31 reportCompare(0, 0);