tor-browser

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

15.2.3.4-4-b-1.js (617B)


      1 // Copyright (c) 2012 Ecma International.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 es5id: 15.2.3.4-4-b-1
      6 description: >
      7    Object.getOwnPropertyNames - descriptor of resultant array is all
      8    true
      9 ---*/
     10 
     11 var obj = new Object();
     12 obj.x = 1;
     13 obj.y = 2;
     14 var result = Object.getOwnPropertyNames(obj);
     15 var desc = Object.getOwnPropertyDescriptor(result, "0");
     16 
     17 assert.sameValue(desc.enumerable, true, 'desc.enumerable');
     18 assert.sameValue(desc.configurable, true, 'desc.configurable');
     19 assert.sameValue(desc.writable, true, 'desc.writable');
     20 
     21 reportCompare(0, 0);