tor-browser

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

15.2.3.6-4-104.js (659B)


      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-104
      6 description: >
      7    Object.defineProperty - 'name' and 'desc' are data properties,
      8    name.enumerable and desc.enumerable are different values (8.12.9
      9    step 12)
     10 includes: [propertyHelper.js]
     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);