Lines Matching refs:object

13   var object = {  variable in TestBasicsString
19 assertEquals('A', object.a);
20 assertEquals('B', object.b);
21 assertEquals('C', object.c);
22 assertEquals('D', object.d);
23 assertArrayEquals(['a', 'b', 'c', 'd'], Object.keys(object));
28 var object = { variable in TestBasicsNumber
34 assertEquals('A', object.a);
35 assertEquals('B', object[1]);
36 assertEquals('C', object.c);
37 assertEquals('D', object[2]);
39 assertArrayEquals(['1', '2', 'a', 'c'], Object.keys(object));
46 var object = { variable in TestBasicsSymbol
52 assertEquals('A', object.a);
53 assertEquals('B', object[sym1]);
54 assertEquals('C', object.c);
55 assertEquals('D', object[sym2]);
56 assertArrayEquals(['a', 'c'], Object.keys(object));
57 assertArrayEquals([sym1, sym2], Object.getOwnPropertySymbols(object));
75 var object = { variable in TestToNameSideEffects
82 assertEquals('A', object.a);
83 assertEquals('B', object.b);
84 assertEquals('C', object.c);
85 assertEquals('D', object.d);
86 assertArrayEquals(['a', 'b', 'c', 'd'], Object.keys(object));
107 var object = { variable in TestToNameSideEffectsNumbers
114 assertEquals('A', object.a);
115 assertEquals('B', object[1]);
116 assertEquals('C', object.c);
117 assertEquals('D', object[2]);
119 assertArrayEquals(['1', '2', 'a', 'c'], Object.keys(object));
124 var object = { variable in TestDoubleName
134 assertEquals('A', object['1.2']);
135 assertEquals('B', object['1e+55']);
136 assertEquals('C', object['0.000001']);
137 assertEquals('D', object[0]);
141 assertEquals('G', object[NaN]);
146 var object = { variable in TestGetter
151 assertEquals('A', object.a);
153 object = { variable in TestGetter
161 assertEquals('B', object.b);
163 object = { variable in TestGetter
174 assertEquals('C', object.c);
176 object = { variable in TestGetter
184 assertEquals('D', object.d);
190 var object = { variable in TestSetter
195 object.a = 'A';
199 object = { variable in TestSetter
207 object.b = 'B';
211 object = { variable in TestSetter
222 object.c = 'C';
226 object = { variable in TestSetter
234 object.d = 'D';
244 var object = { variable in TestDuplicateKeys
248 assertEquals(2, object.a);
254 var object = { variable in TestProto
257 assertEquals(proto, Object.getPrototypeOf(object));
259 object = { variable in TestProto
262 assertEquals(proto, Object.getPrototypeOf(object));
264 object = { variable in TestProto
267 assertEquals(Object.prototype, Object.getPrototypeOf(object));
268 assertEquals(proto, object.__proto__);
269 assertTrue(object.hasOwnProperty('__proto__'));
271 object = { variable in TestProto
275 assertEquals('X', object.x);
276 assertEquals(proto, Object.getPrototypeOf(object));
319 var object = { variable in TestNestedLiterals
329 assertEquals(42, object.outer);
330 assertEquals(43, object.outer2);
331 assertEquals('A', object.inner.a);
332 assertEquals('B', object.inner.b);
333 assertEquals('C', object.inner.c);
334 assertEquals('D', object.inner.d);
335 var object = { variable in TestNestedLiterals
348 assertEquals(42, object.outer);
349 assertEquals(45, object.outer2);
350 assertEquals(43, object.array[0]);
351 assertEquals(44, object.array[2]);
352 assertEquals('A', object.array[1].a);
353 assertEquals('B', object.array[1].b);
354 assertEquals('C', object.array[1].c);
355 assertEquals('D', object.array[1].d);