Lines Matching refs:o
34 function deleteFromObjectSloppy(o) { argument
35 return delete o.foo;
38 function deleteFromObjectKeyedSloppy(o) { argument
39 return delete o["foo"];
42 function deleteFromObjectKeyedVarSloppy(o) { argument
44 return delete o[a];
47 function deleteFromObjectKeyedComputedSloppy(o) { argument
49 return delete o["fo" + a];
52 function deleteFromObjectWith(o) { argument
53 with (o) {
58 function deleteFromObjectElementSloppy(o) { argument
59 return delete o[0];
62 function deleteFromObjectElementVarSloppy(o) { argument
64 return delete o[a];
67 function deleteFromObjectElementSparseSloppy(o) { argument
68 return delete o[100000];
71 function deleteFromObjectElementVarSloppy(o) {
73 return delete o[a];
76 function deleteFromObjectElementSparseVarSloppy(o) { argument
78 return delete o[a];
81 function deleteFromObjectStrict(o) { argument
83 return delete o.foo;
86 function deleteFromObjectKeyedStrict(o) { argument
88 return delete o["foo"];
91 function deleteFromObjectKeyedVarStrict(o) { argument
94 return delete o[a];
97 function deleteFromObjectKeyedComputedStrict(o) { argument
100 return delete o["fo" + a];
103 function deleteFromObjectElementStrict(o) { argument
105 return delete o[0];
108 function deleteFromObjectElementSparseStrict(o) { argument
110 return delete o[100000];
113 function deleteFromObjectElementVarStrict(o) { argument
116 return delete o[a];
119 function deleteFromObjectElementSparseVarStrict(o) { argument
122 return delete o[a];
190 for (let o of getWeakObjects()) {
191 Object.defineProperty(o, name, propDesc);
192 assertTrue(delete o["bar"]);
193 assertTrue(delete o[5000]);
194 assertTrue(deleteFunc(o));
195 assertFalse(o.hasOwnProperty(name));
197 Object.defineProperty(o, name, propDesc);
198 assertTrue(deleteFunc(o));
199 assertFalse(o.hasOwnProperty(name));
201 Object.defineProperty(o, name, propDesc);
202 assertTrue(deleteFunc(o));
203 assertFalse(o.hasOwnProperty(name));
205 for (let o of getStrongObjects()) {
206 Object.defineProperty(o, name, propDesc);
207 assertTrue(delete o["bar"]);
208 assertTrue(delete o[5000]);
209 assertFalse(deleteFunc(o));
210 assertTrue(o.hasOwnProperty(name));
212 assertFalse(deleteFunc(o));
213 assertTrue(o.hasOwnProperty(name));
215 assertFalse(deleteFunc(o));
216 assertTrue(o.hasOwnProperty(name));
223 for (let o of getWeakObjects()) {
224 Object.defineProperty(o, name, propDesc);
225 assertTrue(delete o["bar"]);
226 assertTrue(delete o[5000]);
227 assertTrue(deleteFunc(o));
228 assertFalse(o.hasOwnProperty(name));
230 Object.defineProperty(o, name, propDesc);
231 assertTrue(deleteFunc(o));
232 assertFalse(o.hasOwnProperty(name));
234 Object.defineProperty(o, name, propDesc);
235 assertTrue(deleteFunc(o));
236 assertFalse(o.hasOwnProperty(name));
238 for (let o of getStrongObjects()) {
239 Object.defineProperty(o, name, propDesc);
240 assertTrue(delete o["bar"]);
241 assertTrue(delete o[5000]);
242 assertThrows(function(){deleteFunc(o)}, TypeError);
243 assertTrue(o.hasOwnProperty(name));
245 assertThrows(function(){deleteFunc(o)}, TypeError);
246 assertTrue(o.hasOwnProperty(name));
248 assertThrows(function(){deleteFunc(o)}, TypeError);
249 assertTrue(o.hasOwnProperty(name));