tor-browser

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

primitive-symbols.js (470B)


      1 // Copyright (C) 2016 Jordan Harband. All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 description: Object.getOwnPropertyDescriptors accepts Symbol primitives.
      6 esid: sec-object.getownpropertydescriptors
      7 author: Jordan Harband
      8 features: [Symbol]
      9 ---*/
     10 
     11 var result = Object.getOwnPropertyDescriptors(Symbol());
     12 
     13 assert.sameValue(Object.keys(result).length, 0, 'symbol primitive has no descriptors');
     14 
     15 reportCompare(0, 0);