tor-browser

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

15.2.3.6-4-205.js (823B)


      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-205
      6 description: >
      7    Object.defineProperty - 'O' is an Array, 'name' is an array index
      8    named property, 'name' property doesn't exist in 'O' and [[Get]]
      9    is absent in accessor descriptor 'desc', test [[Get]] attribute of
     10    property 'name' is set to undefined (15.4.5.1 step 4.c)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 var arrObj = [];
     15 var setFunc = function(value) {
     16  arrObj.setVerifyHelpProp = value;
     17 };
     18 
     19 Object.defineProperty(arrObj, "0", {
     20  set: setFunc,
     21  enumerable: true,
     22  configurable: true
     23 });
     24 
     25 verifyWritable(arrObj, "0", "setVerifyHelpProp");
     26 
     27 verifyProperty(arrObj, "0", {
     28  enumerable: true,
     29  configurable: true,
     30 });
     31 
     32 reportCompare(0, 0);