Lines Matching refs:o

12 var o = { length: Number.MIN_VALUE };  variable
13 var result = Array.prototype.toString.call(o);
18 var o = { length: Number.MIN_VALUE }; variable
19 var result = Array.prototype.toLocaleString.call(o);
24 var o = { length: Number.MIN_VALUE }; variable
25 var result = Array.prototype.join.call(o);
30 var o = { length: Number.MIN_VALUE }; variable
31 Array.prototype.push.call(o, 1); argument
32 assertEquals(1, o.length);
33 assertEquals(1, o[0]);
35 var o = { length: Number.MAX_VALUE }; variable
36 assertThrows(() => Array.prototype.push.call(o, 1), TypeError);
40 var o = { length: 0 }; variable
41 Array.prototype.pop.call(o); argument
42 assertEquals(0, o.length);
44 var o = { length: Number.MIN_VALUE }; variable
45 Array.prototype.pop.call(o); argument
46 assertEquals(0, o.length);
48 var o = { length: Number.MAX_VALUE }; variable
49 Array.prototype.pop.call(o); argument
50 assertEquals(o.length, Number.MAX_SAFE_INTEGER - 1);
54 var o = { 0: 'foo', length: Number.MIN_VALUE } variable
55 var result = Array.prototype.reverse.call(o);
58 assertEquals(Number.MIN_VALUE, o.length);
62 var o = { 0: "foo", length: Number.MIN_VALUE } variable
63 var result = Array.prototype.shift.call(o);
65 assertEquals(0, o.length);
69 var o = { length: 0 }; variable
70 Array.prototype.unshift.call(o); argument
71 assertEquals(0, o.length);
73 var o = { length: 0 }; variable
74 Array.prototype.unshift.call(o, 'foo'); argument
75 assertEquals('foo', o[0]);
76 assertEquals(1, o.length);
78 var o = { length: Number.MIN_VALUE }; variable
79 Array.prototype.unshift.call(o); argument
80 assertEquals(0, o.length);
82 var o = { length: Number.MIN_VALUE }; variable
83 Array.prototype.unshift.call(o, 'foo'); argument
84 assertEquals('foo', o[0]);
85 assertEquals(1, o.length);
89 var o = { length: Number.MIN_VALUE }; variable
90 Array.prototype.splice.call(o); argument
91 assertEquals(0, o.length);
93 var o = { length: Number.MIN_VALUE }; variable
94 Array.prototype.splice.call(o, 0, 10, ['foo']); argument
95 assertEquals(['foo'], o[0]);
96 assertEquals(1, o.length);
98 var o = { length: Number.MIN_VALUE }; variable
99 Array.prototype.splice.call(o, -1); argument
100 assertEquals(0, o.length);
102 var o = { length: Number.MAX_SAFE_INTEGER }; variable
103 Array.prototype.splice.call(o, -1); argument
104 assertEquals(Number.MAX_SAFE_INTEGER - 1, o.length);
108 var o = { length: Number.MIN_VALUE }; variable
109 var result = Array.prototype.slice.call(o);
112 var o = { length: Number.MIN_VALUE }; variable
113 var result = Array.prototype.slice.call(o, Number.MAX_VALUE);
116 var o = { length: Number.MAX_VALUE }; variable
117 var result = Array.prototype.slice.call(o, Number.MAX_VALUE - 1);
122 var o = { length: Number.MIN_VALUE }; variable
123 var result = Array.prototype.indexOf.call(o);
126 var o = { length: Number.MAX_SAFE_INTEGER } variable
127 o[Number.MAX_SAFE_INTEGER - 1] = "foo"
128 var result = Array.prototype.indexOf.call(o,
132 var o = { length: Number.MAX_SAFE_INTEGER }; variable
133 o[Number.MAX_SAFE_INTEGER - 1] = "foo";
134 var result = Array.prototype.indexOf.call(o, "foo", -1);
139 var o = { length: Number.MIN_VALUE }; variable
140 var result = Array.prototype.lastIndexOf.call(o);
143 var o = { length: Number.MAX_SAFE_INTEGER } variable
144 o[Number.MAX_SAFE_INTEGER - 1] = "foo"
145 var result = Array.prototype.lastIndexOf.call(o,
149 var o = { length: Number.MAX_SAFE_INTEGER }; variable
150 o[Number.MAX_SAFE_INTEGER - 1] = "foo";
151 var result = Array.prototype.lastIndexOf.call(o, "foo", -1);
158 var o = { length: Number.MIN_VALUE }; variable
159 Array.prototype.filter.call(o, func); argument
160 assertEquals(Number.MIN_VALUE, o.length);
164 var o = { length: Number.MIN_VALUE }; variable
165 Array.prototype.forEach.call(o, func); argument
166 assertEquals(Number.MIN_VALUE, o.length);
170 var o = { length: Number.MIN_VALUE }; variable
171 Array.prototype.some.call(o, func); argument
172 assertEquals(Number.MIN_VALUE, o.length);
176 var o = { length: Number.MIN_VALUE }; variable
177 Array.prototype.every.call(o, func); argument
178 assertEquals(Number.MIN_VALUE, o.length);
182 var o = { length: Number.MIN_VALUE }; variable
183 Array.prototype.map.call(o, func); argument
184 assertEquals(Number.MIN_VALUE, o.length);
188 var o = { length: Number.MIN_VALUE }; variable
189 Array.prototype.reduce.call(o, func, 0); argument
190 assertEquals(Number.MIN_VALUE, o.length);
194 var o = { length: Number.MIN_VALUE }; variable
195 Array.prototype.reduceRight.call(o, func, 0); argument
196 assertEquals(Number.MIN_VALUE, o.length);
200 var o = { length: Number.MIN_VALUE }; variable
201 Array.prototype.fill(o, 0); argument
202 assertEquals(Number.MIN_VALUE, o.length);