tor-browser

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

15.2.3.7-6-a-199.js (757B)


      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.7-6-a-199
      6 description: >
      7    Object.defineProperties - 'O' is an Array, 'P' is an array index
      8    named property, 'P' property doesn't exist in 'O', test
      9    [[Configurable]] of 'P' property in 'Attributes' is set as false
     10    value if [[Configurable]] is absent in data descriptor 'desc'
     11    (15.4.5.1 step 4.c)
     12 includes: [propertyHelper.js]
     13 ---*/
     14 
     15 var arr = [];
     16 var beforeDeleted = false;
     17 var afterDeleted = false;
     18 
     19 Object.defineProperties(arr, {
     20  "0": {
     21    value: 1001,
     22    writable: true,
     23    enumerable: true
     24  }
     25 });
     26 
     27 verifyProperty(arr, "0", {
     28  configurable: false,
     29 });
     30 
     31 reportCompare(0, 0);