tor-browser

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

15.2.3.6-4-354-2.js (739B)


      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-354-2
      6 description: >
      7    Object.defineProperty will update [[Value]] attribute of indexed
      8    property 'P' successfully when [[Configurable]] attribute is true
      9    and [[Writable]] attribute is false, 'A' is an Array object
     10    (8.12.9 step - Note)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 
     15 var obj = [];
     16 
     17 Object.defineProperty(obj, "0", {
     18  value: 1001,
     19  writable: false,
     20  configurable: true
     21 });
     22 
     23 Object.defineProperty(obj, "0", {
     24  value: 1002
     25 });
     26 
     27 verifyProperty(obj, "0", {
     28  value: 1002,
     29  writable: false,
     30  enumerable: false,
     31  configurable: true,
     32 });
     33 
     34 reportCompare(0, 0);