tor-browser

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

length.js (1165B)


      1 // |reftest| skip-if(!this.hasOwnProperty('Temporal')) -- Temporal is not enabled unconditionally
      2 // Copyright (C) 2021 the V8 project authors. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-temporal.now.instant
      6 description: Temporal.Now.instant.length is 0
      7 info: |
      8    Every built-in function object, including constructors, has a "length" property whose value is
      9    an integer. Unless otherwise specified, this value is equal to the largest number of named
     10    arguments shown in the subclause headings for the function description. Optional parameters
     11    (which are indicated with brackets: [ ]) or rest parameters (which are shown using the form
     12    «...name») are not included in the default argument count.
     13 
     14    Unless otherwise specified, the "length" property of a built-in function object has the
     15    attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
     16 includes: [propertyHelper.js]
     17 features: [Temporal]
     18 ---*/
     19 
     20 verifyProperty(Temporal.Now.instant, "length", {
     21  value: 0,
     22  writable: false,
     23  enumerable: false,
     24  configurable: true,
     25 });
     26 
     27 reportCompare(0, 0);