tor-browser

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

length.js (1319B)


      1 // |reftest| shell-option(--setpref=atomics_wait_async) skip-if(!this.hasOwnProperty('Atomics')||!xulRuntime.shell) -- Atomics is not enabled unconditionally, requires shell-options
      2 // Copyright (C) 2020 Rick Waldron. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 
      5 /*---
      6 esid: sec-atomics.waitasync
      7 description: >
      8  Atomics.waitAsync.length is 4.
      9 info: |
     10  Atomics.waitAsync ( ia, index, expect, timeout )
     11 
     12  17 ECMAScript Standard Built-in Objects:
     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, including optional
     17    parameters. However, rest parameters shown using the form “...name”
     18    are not included in the default argument count.
     19 
     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 includes: [propertyHelper.js]
     24 features: [Atomics.waitAsync, Atomics]
     25 ---*/
     26 
     27 verifyProperty(Atomics.waitAsync, 'length', {
     28  value: 4,
     29  enumerable: false,
     30  writable: false,
     31  configurable: true,
     32 });
     33 
     34 reportCompare(0, 0);