Lines Matching refs:arr
159 var arr = new Array();
165 arr.length = 40;
166 arr[maxint] = "test";
167 shouldBe("arr.length","40");
168 shouldBe("arr[maxint]","\"test\"");
169 delete arr[maxint];
170 shouldBe("arr.length","40");
171 shouldBe("arr[maxint]","undefined");
172 arr[maxint-1] = "test2";
173 shouldBe("arr.length","maxint");
174 shouldBe("arr[maxint-1]","\"test2\"");
177 arr.length = 40;
178 arr[55.5] = "test"; // does fit in a JSImmediate number
179 arr[65.11111111111111111111111111111] = "test"; // does not fit in a JSImmediate number
180 shouldBe("arr.length","40");
181 shouldBe("arr[55.5]","\"test\"");
182 shouldBe("arr[65.11111111111111111111111111111]","\"test\"");
183 delete arr[55.5];
184 delete arr[65.11111111111111111111111111111];
185 shouldBe("arr.length","40");
186 shouldBe("arr[55.5]","undefined");
187 shouldBe("arr[65.11111111111111111111111111111]","undefined");
189 arr = new Array('a','b','c');
190 arr.__proto__ = { 1: 'x' };
192 for (i in arr)