tor-browser

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

length.js (1161B)


      1 // Copyright (C) 2015 André Bargull. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es6id: 19.5.6.2
      6 description: >
      7  RangeError.length is 1.
      8 info: |
      9  NativeError ( message )
     10 
     11  19.5.6.2 Properties of the NativeError Constructors
     12    Besides the length property (whose value is 1) [...].
     13 
     14  17 ECMAScript Standard Built-in Objects:
     15    Every built-in Function object, including constructors, has a length
     16    property whose value is an integer. Unless otherwise specified, this
     17    value is equal to the largest number of named arguments shown in the
     18    subclause headings for the function description, including optional
     19    parameters. However, rest parameters shown using the form “...name”
     20    are not included in the default argument count.
     21 
     22    Unless otherwise specified, the length property of a built-in Function
     23    object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
     24    [[Configurable]]: true }.
     25 includes: [propertyHelper.js]
     26 ---*/
     27 
     28 verifyProperty(RangeError, "length", {
     29  value: 1,
     30  writable: false,
     31  enumerable: false,
     32  configurable: true
     33 });
     34 
     35 reportCompare(0, 0);