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-222.js (787B)


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