tor-browser

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

name.js (957B)


      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-ecmascript-standard-built-in-objects
      6 description: >
      7  The value of ShadowRealm.name is 'ShadowRealm'
      8 info: |
      9  Every built-in function object, including constructors, has a "name" property
     10  whose value is a String. Unless otherwise specified, this value is the name
     11  that is given to the function in this specification.
     12 
     13  Unless otherwise specified, the "name" property of a built-in function
     14  object has the attributes
     15  { [[Writable]]: false, [[Enumerable]]: false, [[Configurable]]: true }.
     16 
     17 includes: [propertyHelper.js]
     18 features: [ShadowRealm]
     19 ---*/
     20 
     21 verifyProperty(ShadowRealm, "name", {
     22  value: "ShadowRealm",
     23  enumerable: false,
     24  writable: false,
     25  configurable: true,
     26 });
     27 
     28 reportCompare(0, 0);