tor-browser

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

S15.4.5.1_A2.3_T1.js (563B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: |
      6    If ToUint32(P) is less than the value of
      7    the length property of A, change (or set) length to ToUint32(P)+1
      8 es5id: 15.4.5.1_A2.3_T1
      9 description: length = 100, P in [100, 199]
     10 ---*/
     11 
     12 var x = Array(100);
     13 x[100] = 1;
     14 assert.sameValue(x.length, 101, 'The value of x.length is expected to be 101');
     15 
     16 x[199] = 1;
     17 assert.sameValue(x.length, 200, 'The value of x.length is expected to be 200');
     18 
     19 reportCompare(0, 0);