Home | History | Annotate | Download | only in Array

Lines Matching refs:LENGTH

37     4.  If P is "length", go to step 12.
43 9. If A itself has a property (not an inherited property) named "length",
44 andToUint32(P) is less than the value of the length property of A, then
46 10. Change (or set) the value of the length property of A to ToUint32(P)+1.
49 13. For every integer k that is less than the value of the length property
73 // P is "length"
76 "var A = new Array(); A.length = 1000; A.length",
78 eval("var A = new Array(); A.length = 1000; A.length") );
80 // A has Property P, and P is not length or an array index
87 "var A = new Array(1000); A.name = 'name of this array'; A.length",
89 eval("var A = new Array(1000); A.name = 'name of this array'; A.length") );
92 // A has Property P, P is not length, P is an array index, and ToUint32(p) is less than the
93 // value of length
101 "var A = new Array(1000); A[123] = 'hola'; A.length",
103 eval("var A = new Array(1000); A[123] = 'hola'; A.length") );
115 var LENGTH = 0x00ff - 0x0020;
124 LENGTH,
125 eval( TEST_STRING + " A[150] = 'hello'; A.length" ) );
127 // A has Property P, P is not length, P is an array index, and ToUint32(p) is not less than the
128 // value of length
131 "var A = new Array(); A[123] = true; A.length",
133 eval("var A = new Array(); A[123] = true; A.length") );
136 "var A = new Array(0,1,2,3,4,5,6,7,8,9,10); A[15] ='15'; A.length",
138 eval("var A = new Array(0,1,2,3,4,5,6,7,8,9,10); A[15] ='15'; A.length") );
140 for ( var i = 0; i < A.length; i++, item++ ) {
146 // P is not an array index, and P is not "length"
149 "var A = new Array(); A.join.length = 4; A.join.length",
151 eval("var A = new Array(); A.join.length = 4; A.join.length") );
154 "var A = new Array(); A.join.length = 4; A.length",
156 eval("var A = new Array(); A.join.length = 4; A.length") );
161 for ( tc=0; tc < testcases.length; tc++ ) {