tor-browser

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

length.js (895B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 es6id: 25.4.3.1
      5 description: Promise `length` property
      6 info: |
      7    ES6 Section 17:
      8    Every built-in Function object, including constructors, has a length
      9    property whose value is an integer. Unless otherwise specified, this value
     10    is equal to the largest number of named arguments shown in the subclause
     11    headings for the function description, including optional parameters.
     12 
     13    [...]
     14 
     15    Unless otherwise specified, the length property of a built-in Function
     16    object has the attributes { [[Writable]]: false, [[Enumerable]]: false,
     17    [[Configurable]]: true }.
     18 includes: [propertyHelper.js]
     19 ---*/
     20 
     21 verifyProperty(Promise, "length", {
     22  value: 1,
     23  writable: false,
     24  enumerable: false,
     25  configurable: true
     26 });
     27 
     28 reportCompare(0, 0);