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-195.js (661B)


      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-195
      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 'P' is
      9    defined as data property when 'desc' is generic descriptor
     10    (15.4.5.1 step 4.c)
     11 includes: [propertyHelper.js]
     12 ---*/
     13 
     14 var arr = [];
     15 
     16 Object.defineProperties(arr, {
     17  "0": {
     18    enumerable: true
     19  }
     20 });
     21 
     22 verifyProperty(arr, "0", {
     23  value: undefined,
     24  writable: false,
     25  enumerable: true,
     26  configurable: false,
     27 });
     28 
     29 reportCompare(0, 0);