tor-browser

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

15.2.3.6-4-185.js (639B)


      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-185
      6 description: >
      7    Object.defineProperty - 'O' is an Array, 'name' is an array index
      8    named property, 'name' is boundary value 2^32 (15.4.5.1 step 4.a)
      9 ---*/
     10 
     11 var arrObj = [];
     12 
     13 Object.defineProperty(arrObj, 4294967296, {
     14  value: 100
     15 });
     16 
     17 assert(arrObj.hasOwnProperty("4294967296"), 'arrObj.hasOwnProperty("4294967296") !== true');
     18 assert.sameValue(arrObj.length, 0, 'arrObj.length');
     19 assert.sameValue(arrObj[4294967296], 100, 'arrObj[4294967296]');
     20 
     21 reportCompare(0, 0);