tor-browser

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

15.2.3.6-4-80.js (629B)


      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.6-4-80
      6 description: >
      7    Object.defineProperty - desc.enumerable and name.enumerable are
      8    boolean negation of each other (8.12.9 step 6)
      9 includes: [propertyHelper.js]
     10 ---*/
     11 
     12 
     13 var obj = {};
     14 
     15 Object.defineProperty(obj, "foo", {
     16  enumerable: false,
     17  configurable: true
     18 });
     19 
     20 Object.defineProperty(obj, "foo", {
     21  enumerable: true
     22 });
     23 
     24 verifyProperty(obj, "foo", {
     25  value: undefined,
     26  writable: false,
     27  enumerable: true,
     28  configurable: true,
     29 });
     30 
     31 reportCompare(0, 0);