tor-browser

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

symbol-species-name.js (558B)


      1 // Copyright (C) 2015 the V8 project authors. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 /*---
      4 esid: sec-get-set-@@species
      5 description: >
      6  Set[Symbol.species] accessor property get name
      7 info: |
      8  23.2.2.2 get Set [ @@species ]
      9 
     10  ...
     11  The value of the name property of this function is "get [Symbol.species]".
     12 features: [Symbol.species]
     13 ---*/
     14 
     15 var descriptor = Object.getOwnPropertyDescriptor(Set, Symbol.species);
     16 
     17 assert.sameValue(
     18  descriptor.get.name,
     19  'get [Symbol.species]'
     20 );
     21 
     22 reportCompare(0, 0);