tor-browser

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

15.5.5.5.2-3-8.js (561B)


      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 info: |
      6    15.5.5.2 defines [[GetOwnProperty]] for Strings. It supports using indexing
      7    notation to look up non numeric property names.
      8 es5id: 15.5.5.5.2-3-8
      9 description: >
     10    String value indexing returns undefined if the numeric index ( >=
     11    2^32-1) is not an array index
     12 ---*/
     13 
     14 var s = String("hello world");
     15 
     16 assert.sameValue(s[Math.pow(2, 32) - 1], undefined, 's[Math.pow(2, 32)-1]');
     17 
     18 reportCompare(0, 0);