tor-browser

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

length.js (1094B)


      1 // |reftest| shell-option(--enable-shadow-realms) skip-if(!xulRuntime.shell) -- requires shell-options
      2 // Copyright (C) 2021 Rick Waldron. All rights reserved.
      3 // This code is governed by the BSD license found in the LICENSE file.
      4 /*---
      5 esid: sec-shadowrealm-constructor
      6 description: >
      7  The value of ShadowRealm.length is 0
      8 info: |
      9  ShadowRealm ( )
     10 
     11  Every built-in function object, including constructors, has a "length" property
     12  whose value is a non-negative integral Number. Unless otherwise specified, this value
     13  is equal to the number of required parameters shown in the subclause heading for the
     14  function description. Optional parameters and rest parameters are not included in
     15  the parameter count.
     16 
     17  Unless otherwise specified, the "length" property of a built-in function object has
     18  the attributes { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
     19 
     20 includes: [propertyHelper.js]
     21 features: [ShadowRealm]
     22 ---*/
     23 
     24 verifyProperty(ShadowRealm, "length", {
     25  value: 0,
     26  enumerable: false,
     27  writable: false,
     28  configurable: true,
     29 });
     30 
     31 reportCompare(0, 0);