tor-browser

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

15.2.3.6-4-82-16.js (944B)


      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-82-16
      6 description: >
      7    Object.defineProperty - Update [[Configurable]] attribute of
      8    'name' property to false successfully when [[Enumerable]] and
      9    [[Configurable]] attributes of 'name' property are true,  the
     10    'desc' is a generic descriptor which contains [[Enumerable]]
     11    attribute as true and [[Configurable]] attribute as false, 'name'
     12    property is an index data property (8.12.9 step 8)
     13 includes: [propertyHelper.js]
     14 ---*/
     15 
     16 
     17 var obj = {};
     18 
     19 Object.defineProperty(obj, "0", {
     20  value: 1001,
     21  writable: true,
     22  enumerable: true,
     23  configurable: true
     24 });
     25 
     26 Object.defineProperty(obj, "0", {
     27  enumerable: true,
     28  configurable: false
     29 });
     30 
     31 verifyProperty(obj, "0", {
     32  value: 1001,
     33  writable: true,
     34  enumerable: true,
     35  configurable: false,
     36 });
     37 
     38 reportCompare(0, 0);