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-15.js (862B)


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