tor-browser

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

symbol-species.js (630B)


      1 // Copyright 2015 Cubane Canada, Inc.  All rights reserved.
      2 // See LICENSE for details.
      3 
      4 /*---
      5 info: |
      6 Array has a property at `Symbol.species`
      7 esid: sec-get-array-@@species
      8 author: Sam Mikes
      9 description: Array[Symbol.species] exists per spec
     10 includes: [propertyHelper.js]
     11 features: [Symbol.species]
     12 ---*/
     13 
     14 var desc = Object.getOwnPropertyDescriptor(Array, Symbol.species);
     15 
     16 assert.sameValue(desc.set, undefined);
     17 assert.sameValue(typeof desc.get, 'function');
     18 
     19 verifyNotWritable(Array, Symbol.species, Symbol.species);
     20 verifyNotEnumerable(Array, Symbol.species);
     21 verifyConfigurable(Array, Symbol.species);
     22 
     23 reportCompare(0, 0);