• Home
  • Raw
  • Download

Lines Matching refs:a

28 var a = [0,1,2,3];  variable
29 assertEquals(0, a.length = 0);
31 assertEquals('undefined', typeof a[0]);
32 assertEquals('undefined', typeof a[1]);
33 assertEquals('undefined', typeof a[2]);
34 assertEquals('undefined', typeof a[3]);
37 var a = [0,1,2,3]; variable
38 assertEquals(2, a.length = 2);
40 assertEquals(0, a[0]);
41 assertEquals(1, a[1]);
42 assertEquals('undefined', typeof a[2]);
43 assertEquals('undefined', typeof a[3]);
46 var a = new Array(); variable
47 a[0] = 0;
48 a[1000] = 1000;
49 a[1000000] = 1000000;
50 a[2000000] = 2000000;
52 assertEquals(2000001, a.length);
53 assertEquals(0, a.length = 0);
54 assertEquals(0, a.length);
55 assertEquals('undefined', typeof a[0]);
56 assertEquals('undefined', typeof a[1000]);
57 assertEquals('undefined', typeof a[1000000]);
58 assertEquals('undefined', typeof a[2000000]);
61 var a = new Array(); variable
62 a[0] = 0;
63 a[1000] = 1000;
64 a[1000000] = 1000000;
65 a[2000000] = 2000000;
67 assertEquals(2000001, a.length);
68 assertEquals(2000, a.length = 2000);
69 assertEquals(2000, a.length);
70 assertEquals(0, a[0]);
71 assertEquals(1000, a[1000]);
72 assertEquals('undefined', typeof a[1000000]);
73 assertEquals('undefined', typeof a[2000000]);
76 var a = new Array(); variable
77 a[Math.pow(2,31)-1] = 0;
78 a[Math.pow(2,30)-1] = 0;
79 assertEquals(Math.pow(2,31), a.length);
82 var a = new Array(); variable
83 a[0] = 0;
84 a[1000] = 1000;
85 a[Math.pow(2,30)-1] = Math.pow(2,30)-1;
86 a[Math.pow(2,31)-1] = Math.pow(2,31)-1;
87 a[Math.pow(2,32)-2] = Math.pow(2,32)-2;
89 assertEquals(Math.pow(2,30)-1, a[Math.pow(2,30)-1]);
90 assertEquals(Math.pow(2,31)-1, a[Math.pow(2,31)-1]);
91 assertEquals(Math.pow(2,32)-2, a[Math.pow(2,32)-2]);
93 assertEquals(Math.pow(2,32)-1, a.length);
94 assertEquals(Math.pow(2,30) + 1, a.length = Math.pow(2,30)+1); // not a smi!
95 assertEquals(Math.pow(2,30)+1, a.length);
97 assertEquals(0, a[0]);
98 assertEquals(1000, a[1000]);
99 assertEquals(Math.pow(2,30)-1, a[Math.pow(2,30)-1]);
100 assertEquals('undefined', typeof a[Math.pow(2,31)-1]);
101 assertEquals('undefined', typeof a[Math.pow(2,32)-2], "top");
104 var a = new Array(); variable
105 assertEquals(Object(12), a.length = new Number(12));
106 assertEquals(12, a.length);
114 var a = []; variable
116 assertEquals(3, a.length = 3);
119 t = a.length = 7;