tor-browser

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

15.2.3.6-4-233.js (846B)


      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-233
      6 description: >
      7    Object.defineProperty - 'O' is an Array, 'name' is an array index
      8    property, the [[Set]] field of 'desc' and the [[Set]] attribute
      9    value of 'name' are two objects which refer to the different
     10    objects (15.4.5.1 step 4.c)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 var arrObj = [];
     15 
     16 function setFunc1() {}
     17 
     18 Object.defineProperty(arrObj, "0", {
     19  set: setFunc1,
     20  configurable: true
     21 });
     22 
     23 function setFunc2(value) {
     24  arrObj.setVerifyHelpProp = value;
     25 }
     26 
     27 Object.defineProperty(arrObj, "0", {
     28  set: setFunc2
     29 });
     30 verifyWritable(arrObj, "0", "setVerifyHelpProp");
     31 
     32 verifyProperty(arrObj, "0", {
     33  enumerable: false,
     34  configurable: true,
     35 });
     36 
     37 reportCompare(0, 0);