tor-browser

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

length.js (1240B)


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