tor-browser

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

S15.4.2.1_A1.3_T1.js (562B)


      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    This description of Array constructor applies if and only if
      7    the Array constructor is given no arguments or at least two arguments
      8 es5id: 15.4.2.1_A1.3_T1
      9 description: Checking case when Array constructor is given one argument
     10 ---*/
     11 
     12 var x = new Array(2);
     13 
     14 assert.notSameValue(x.length, 1, 'The value of x.length is not 1');
     15 assert.notSameValue(x[0], 2, 'The value of x[0] is not 2');
     16 
     17 reportCompare(0, 0);